mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-03 01:25:44 -05:00
* Make nullable warnings a per file opt-in * Remove unneeded compiler directives * Remove compiler directive for User Data
72 lines
1.8 KiB
C#
72 lines
1.8 KiB
C#
//
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// An id to unify the task
|
|
/// </summary>
|
|
public string TaskId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Task status
|
|
/// </summary>
|
|
public SqlTaskStatus Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// Task execution mode
|
|
/// </summary>
|
|
public TaskExecutionMode TaskExecutionMode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Database server name this task is created for
|
|
/// </summary>
|
|
public string ServerName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Database name this task is created for
|
|
/// </summary>
|
|
public string DatabaseName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Target location for this task
|
|
/// </summary>
|
|
public string TargetLocation { get; set; }
|
|
|
|
/// <summary>
|
|
/// Task name which defines the type of the task (e.g. CreateDatabase, Backup)
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Provider Name
|
|
/// </summary>
|
|
public string ProviderName
|
|
{
|
|
get
|
|
{
|
|
return ServiceHost.ProviderName;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Task description
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// Defines if the task can be canceled
|
|
/// </summary>
|
|
public bool IsCancelable { get; set; }
|
|
}
|
|
}
|