Beispiel #1
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;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoggingController"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 public LoggingController(DscManagerContext context)
 {
     this.Context           = context;
     this.LoggingRepository = context.Set <LoggingEntity>();
 }