示例#1
0
 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));
 }
示例#5
0
 public RepeatIfRequiredActivity(IConsistencyConfiguration consistencyConfiguration, IScheduledEventRepository scheduledEventRepository)
 {
     _consistencyConfiguration = consistencyConfiguration;
     _scheduledEventRepository = scheduledEventRepository;
 }
示例#6
0
 public SaleCreatedHandler(IScheduledEventRepository scheduledEventRepository, IConsistencyConfiguration consistencyConfiguration)
 {
     _scheduledEventRepository = scheduledEventRepository ?? throw new ArgumentNullException(nameof(scheduledEventRepository));
     _consistencyConfiguration = consistencyConfiguration ?? throw new ArgumentNullException(nameof(consistencyConfiguration));
 }
示例#7
0
 public CreateUserActivity(IBusPublisher busPublisher, IScheduledEventRepository scheduledEventRepo)
 {
     _busPublisher       = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _scheduledEventRepo = scheduledEventRepo ?? throw new ArgumentNullException(nameof(scheduledEventRepo));
 }