// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // #nullable disable using Microsoft.SqlTools.ServiceLayer.Hosting; namespace Microsoft.SqlTools.ServiceLayer.TaskServices.Contracts { public class TaskInfo { /// /// An id to unify the task /// public string TaskId { get; set; } /// /// Task status /// public SqlTaskStatus Status { get; set; } /// /// Task execution mode /// public TaskExecutionMode TaskExecutionMode { 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; } /// /// Target location for this task /// public string TargetLocation { get; set; } /// /// Task name which defines the type of the task (e.g. CreateDatabase, Backup) /// public string Name { get; set; } /// /// Provider Name /// public string ProviderName { get { return ServiceHost.ProviderName; } } /// /// Task description /// public string Description { get; set; } /// /// Defines if the task can be canceled /// public bool IsCancelable { get; set; } } }