Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigurationReportService"/> class.
 /// </summary>
 /// <param name="eventManager">
 /// The event manager.
 /// </param>
 /// <param name="context">
 /// The context.
 /// </param>
 /// <param name="logging">
 /// The logging.
 /// </param>
 public ConfigurationReportService(
     IDscEventManager eventManager,
     ReportingEndpointContext context,
     IReportingEndpointLogging logging)
     : base(eventManager)
 {
     this.Context = context;
     this.ConfigurationReportRepository = context.Set <ConfigurationReport>();
     this.Logging = logging;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DatabaseLogger"/> class.
 /// </summary>
 /// <param name="eventManager">
 /// The event manager.
 /// </param>
 /// <param name="context">
 /// The context.
 /// </param>
 /// <param name="container">
 /// The container.
 /// </param>
 /// <param name="options">
 /// The options.
 /// </param>
 /// <param name="logging">
 /// The logging.
 /// </param>
 public DatabaseLogger(
     IDscEventManager eventManager,
     DscManagerContext context,
     ILifetimeScope container,
     IDscManagerOptions options,
     IDscManagerLogging logging)
     : base(eventManager)
 {
     this.Context           = context;
     this.LoggingRepository = context.Set <LoggingEntity>();
     this.Container         = container;
     this.Options           = options;
     this.Logging           = logging;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DscEventHandler"/> class.
 /// </summary>
 /// <param name="eventManager">
 /// The event manager.
 /// </param>
 public SlackLogger(IDscEventManager eventManager, ISlackIntegrationService slackService)
     : base(eventManager)
 {
     this.SlackService = slackService;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DscLogging"/> class.
 /// </summary>
 /// <param name="eventManager">
 /// The event manager.
 /// </param>
 public DscLogging(IDscEventManager eventManager)
 {
     this.EventManager = eventManager;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsoleLogger"/> class.
 /// </summary>
 /// <param name="eventManager">
 /// The event manager.
 /// </param>
 public ConsoleLogger(IDscEventManager eventManager)
     : base(eventManager)
 {
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NodeStatusService"/> class.
 /// </summary>
 /// <param name="eventManager">
 /// The event manager.
 /// </param>
 /// <param name="context">
 /// The context.
 /// </param>
 public NodeStatusService(IDscEventManager eventManager, ReportingEndpointContext context)
 {
     this.EventManager         = eventManager;
     this.Context              = context;
     this.NodeStatusRepository = context.Set <NodeStatus>();
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DscEventHandler"/> class.
 /// </summary>
 /// <param name="eventManager">
 /// The event manager.
 /// </param>
 protected DscEventHandler(IDscEventManager eventManager)
 {
     this.EventManager = eventManager;
 }