// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // namespace Microsoft.SqlTools.ServiceLayer.TaskServices { public class TaskMetadata { /// /// Task Description /// public string Description { get; set; } /// /// Task name to define the type of the task e.g. Create Db, back up /// public string Name { get; set; } /// /// Task execution mode (e.g. execute or script) /// public TaskExecutionMode TaskExecutionMode { get; set; } /// /// The number of seconds to wait before canceling the task. /// This is a optional field and 0 or negative numbers means no timeout /// public int Timeout { get; set; } /// /// Defines if the task can be canceled /// public bool IsCancelable { get; set; } /// /// Database server name this task is created for /// public string ServerName { get; set; } /// /// Database name this task is created for /// public string DatabaseName { get; set; } /// /// Data required to perform the task /// public object Data { get; set; } } }