mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-20 17:24:00 -05:00
* Make nullable warnings a per file opt-in * Remove unneeded compiler directives * Remove compiler directive for User Data
30 lines
757 B
C#
30 lines
757 B
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.TaskServices;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.Management
|
|
{
|
|
/// <summary>
|
|
/// Utility functions for working with Management classes
|
|
/// </summary>
|
|
public static class ManagementUtils
|
|
{
|
|
public static RunType asRunType(TaskExecutionMode taskExecutionMode)
|
|
{
|
|
if (taskExecutionMode == TaskExecutionMode.Script)
|
|
{
|
|
return RunType.ScriptToWindow;
|
|
}
|
|
else
|
|
{
|
|
return RunType.RunNow;
|
|
}
|
|
}
|
|
}
|
|
}
|