mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-17 17:23:48 -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.
80 lines
2.0 KiB
C#
80 lines
2.0 KiB
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;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Globalization;
|
|
using Microsoft.SqlServer.Management.Common;
|
|
using Microsoft.SqlServer.Management.Sdk.Sfc;
|
|
using Microsoft.SqlServer.Management.Smo;
|
|
using Microsoft.SqlServer.Management.Smo.Agent;
|
|
using Microsoft.SqlServer.Management.Diagnostics;
|
|
using SMO = Microsoft.SqlServer.Management.Smo;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.Agent
|
|
{
|
|
internal class MsaJobTargetServer
|
|
{
|
|
#region members
|
|
private string name = string.Empty;
|
|
// is the job currently applied to the target server
|
|
private bool isJobAppliedToTarget = false;
|
|
// will the job be applied to the target server in the future?
|
|
private bool willJobBeAppliedToTarget = false;
|
|
#endregion
|
|
|
|
#region properties
|
|
public string Name
|
|
{
|
|
get
|
|
{
|
|
return this.name;
|
|
}
|
|
}
|
|
public bool IsJobAppliedToTarget
|
|
{
|
|
get
|
|
{
|
|
return this.isJobAppliedToTarget;
|
|
}
|
|
set
|
|
{
|
|
this.isJobAppliedToTarget = value;
|
|
}
|
|
}
|
|
public bool WillJobBeAppliedToTarget
|
|
{
|
|
get
|
|
{
|
|
return this.willJobBeAppliedToTarget;
|
|
}
|
|
set
|
|
{
|
|
this.willJobBeAppliedToTarget = value;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region construction
|
|
public MsaJobTargetServer()
|
|
{
|
|
}
|
|
public MsaJobTargetServer(String name)
|
|
{
|
|
this.name = name;
|
|
}
|
|
#endregion
|
|
|
|
#region overrides
|
|
public override string ToString()
|
|
{
|
|
return this.name;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|