mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-18 17:23:52 -05:00
* 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.
36 lines
944 B
C#
36 lines
944 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 System;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.Management
|
|
{
|
|
/// <summary>
|
|
/// Custom attribute that can be applied on particular DB commander to
|
|
/// indicate whether the base class should switch SMO servers before
|
|
/// execution or not.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public sealed class ServerSwitchingAttribute : Attribute
|
|
{
|
|
private bool needToSwitch = false;
|
|
|
|
private ServerSwitchingAttribute() {}
|
|
|
|
public ServerSwitchingAttribute(bool needToSwitchServer)
|
|
{
|
|
this.needToSwitch = needToSwitchServer;
|
|
}
|
|
|
|
public bool NeedToSwtichServerObject
|
|
{
|
|
get
|
|
{
|
|
return this.needToSwitch;
|
|
}
|
|
}
|
|
}
|
|
}
|