示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigurationsController"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 /// <param name="configurationService">
 /// The configuration Service.
 /// </param>
 /// <param name="deploymentServerLogging">
 /// The deployment Server Logging.
 /// </param>
 public ConfigurationsController(
     DeploymentServerContext context,
     IConfigurationService configurationService,
     IDeploymentServerLogging deploymentServerLogging)
 {
     this.Context                 = context;
     this.Repository              = context.Set <Configuration>();
     this.DocumentRepository      = context.Set <ConfigurationDocument>();
     this.ConfigurationService    = configurationService;
     this.DeploymentServerLogging = deploymentServerLogging;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildsController"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 /// <param name="monitoringApi">
 /// The monitoring api.
 /// </param>
 /// <param name="service">
 /// The service.
 /// </param>
 public BuildsController(
     DeploymentServerContext context,
     IMonitoringApi monitoringApi,
     IMofBuilderService service)
 {
     this.Context                = context;
     this.MonitoringApi          = monitoringApi;
     this.BuildRepository        = context.Set <Build>();
     this.BuildTargetsRepository = context.Set <BuildTarget>();
     this.MofBuilderService      = service;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigurationService"/> class.
 /// </summary>
 /// <param name="eventManager">
 /// The event manager.
 /// </param>
 /// <param name="context">
 /// The context.
 /// </param>
 /// <param name="options">
 /// The options.
 /// </param>
 /// <param name="logging">
 /// The logging.
 /// </param>
 public ConfigurationService(
     IDscEventManager eventManager,
     DeploymentServerContext context,
     IDeploymentServerOptions options,
     IDeploymentServerLogging logging)
     : base(eventManager)
 {
     this.Context    = context;
     this.Repository = context.Set <Configuration>();
     this.Options    = options;
     this.Logging    = logging;
 }
示例#4
0
 public DataInitializer(
     DscManagerContext dscContext,
     DeploymentServerContext deploymentContext,
     NodeRepositoryContext nodeContext,
     ReportingEndpointContext reportingContext,
     IDscManagerOptions options)
 {
     this.DscContext        = dscContext;
     this.DeploymentContext = deploymentContext;
     this.NodeContext       = nodeContext;
     this.ReportingContext  = reportingContext;
     this.Options           = options;
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MofBuilderService"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 /// <param name="options">
 /// The options.
 /// </param>
 /// <param name="runner">
 /// The runner.
 /// </param>
 /// <param name="configurationService">
 /// The configuration service.
 /// </param>
 /// <param name="monitoringApi">
 /// The monitoring api.
 /// </param>
 /// <param name="logging">
 /// The logging.
 /// </param>
 public MofBuilderService(
     DeploymentServerContext context,
     IDeploymentServerOptions options,
     IPowerShellRunner runner,
     IConfigurationService configurationService,
     IMonitoringApi monitoringApi,
     IDeploymentServerLogging logging)
 {
     this.Context              = context;
     this.BuildRepository      = context.Set <Build>();
     this.Logging              = logging;
     this.Options              = options;
     this.Runner               = runner;
     this.ConfigurationService = configurationService;
     this.MonitoringApi        = monitoringApi;
 }