public ShiftServiceScoped( IOptions <ShiftConfiguration> options, IShiftRepository repository, ILogger <ShiftService> logger = null) { this.configuration = options.Value; this.repository = repository; this.logger = logger; }
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); }
public WorkerService(IShiftService shiftService, IOptions <ShiftConfiguration> options, ILogger <WorkerService> logger) { this.shiftService = shiftService; this.configuration = options.Value; this.logger = logger; }