mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-06 01:25:43 -05:00
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.
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
//
|
||||
// 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user