public ImportTaskFromCalendarUseCase( IWorkTaskRepository workTaskRepository, IScheduledEventRepository scheduledEventRepository, IWorkingTimeRangeRepository workingTimeRangeRepository, WorkTaskBuilderConfig workTaskBuilderConfig, ScheduleTitleMap[] scheduleTitleMaps) { _WorkTaskRepository = workTaskRepository; _ScheduledEventRepository = scheduledEventRepository; _WorkingTimeRangeRepository = workingTimeRangeRepository; _WorkTaskBuilderConfig = workTaskBuilderConfig; _ScheduleTitleMaps = scheduleTitleMaps; }
public ScheduledEventDispatcherService(IServiceProvider serviceProvider) { if (serviceProvider == null) { throw new ArgumentNullException(nameof(serviceProvider)); } _scope = serviceProvider.CreateScope(); _logger = _scope.ServiceProvider.GetRequiredService <ILogger <ScheduledEventDispatcherService> >(); _repository = _scope.ServiceProvider.GetRequiredService <IScheduledEventRepository>(); _eventDispatcher = _scope.ServiceProvider.GetRequiredService <IEventDispatcher>(); _commandDispatcher = _scope.ServiceProvider.GetRequiredService <ICommandDispatcher>(); }
public RepeatFailedInitializationActivity(IScheduledEventRepository repository, ILogger <RepeatFailedInitializationActivity> logger) { _repository = repository ?? throw new ArgumentNullException(nameof(repository)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public DeleteScheduledEventHandler(IScheduledEventRepository repository) { _repository = repository ?? throw new ArgumentNullException(nameof(repository)); }
public RepeatIfRequiredActivity(IConsistencyConfiguration consistencyConfiguration, IScheduledEventRepository scheduledEventRepository) { _consistencyConfiguration = consistencyConfiguration; _scheduledEventRepository = scheduledEventRepository; }
public SaleCreatedHandler(IScheduledEventRepository scheduledEventRepository, IConsistencyConfiguration consistencyConfiguration) { _scheduledEventRepository = scheduledEventRepository ?? throw new ArgumentNullException(nameof(scheduledEventRepository)); _consistencyConfiguration = consistencyConfiguration ?? throw new ArgumentNullException(nameof(consistencyConfiguration)); }
public CreateUserActivity(IBusPublisher busPublisher, IScheduledEventRepository scheduledEventRepo) { _busPublisher = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher)); _scheduledEventRepo = scheduledEventRepo ?? throw new ArgumentNullException(nameof(scheduledEventRepo)); }