Files
sqltoolsservice/src/Microsoft.SqlTools.ServiceLayer/Agent/Jobs/MsaJobTargetServer.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

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
}
}