Example #1
0
 public ShiftServiceScoped(
     IOptions <ShiftConfiguration> options,
     IShiftRepository repository,
     ILogger <ShiftService> logger = null)
 {
     this.configuration = options.Value;
     this.repository    = repository;
     this.logger        = logger;
 }
Example #2
0
 public ShiftService(
     IOptions <ShiftConfiguration> options,
     IRtConnector connector           = null,
     IServiceProvider serviceProvider = null,
     ILogger <ShiftService> logger    = null,
     IShiftNotification notification  = null)
 {
     this.configuration   = options.Value;
     this.connector       = connector;
     this.serviceProvider = serviceProvider;
     this.logger          = logger;
     this.notification    = notification;
     this.startedEvent    = new ManualResetEvent(false);
 }
Example #3
0
 public WorkerService(IShiftService shiftService, IOptions <ShiftConfiguration> options, ILogger <WorkerService> logger)
 {
     this.shiftService  = shiftService;
     this.configuration = options.Value;
     this.logger        = logger;
 }