Files
sqltoolsservice/src/Microsoft.SqlTools.ServiceLayer/Management/Common/ManagementUtils.cs
Karl Burtram 372ca0cbe8 Agent configuration support classes (WIP) (#632)
* Additional SQL Agent config classes (WIP)

* Fix build breaks

* Clean up job step code

* Add VS Code build files

* Move changes to other machine

* More of the action execution classes

* More execution processing refactors

* More refactoring

* Disable tests for WIP merge

* Fix break on Release config

* Stage changes to other machine.
2018-06-07 12:08:24 -07:00

28 lines
738 B
C#

//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
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;
}
}
}
}