예제 #1
0
 public ValidationCommandHandlerDecorator(
     ICommandHandler <TCommand> command,
     IFaultHandler <TCommand> faultHandler,
     IValidator <TCommand> validator)
 {
     _command      = command;
     _faultHandler = faultHandler;
     _validator    = validator;
 }
 public RunManager(
     IScheduleReader <TIdentifier> scheduleReader,
     ITaskDefinitionReader <TIdentifier> taskDefinitionReader,
     IRunner <TIdentifier> runner,
     IHistoryWriter <TIdentifier> historyWriter,
     IScheduleWriter <TIdentifier> scheduleWriter,
     IPreconditionReader <TIdentifier> preconditionReader,
     IDueTasksFilter <TIdentifier> dueTasksFilter,
     IHistoryReader <TIdentifier> historyReader,
     IServiceScopeFactory serviceScopeFactory,
     ILogger <RunManager <TIdentifier> > logger,
     IInbuiltTaskPreconditionsProvider <TIdentifier> inbuiltTaskPreconditionsProvider,
     ITaskDefinitionStateReader <TIdentifier> taskDefinitionStateReader,
     ITaskDefinitionStateWriter <TIdentifier> taskDefinitionStateWriter,
     IFaultHandler <TIdentifier> faultHandler,
     IFaultReporter <TIdentifier> faultReporter,
     IOnDemandQueueManager <TIdentifier> onDemandQueueManager,
     ITaskRunnerLogger taskRunnerLogger)
 {
     this.scheduleReader       = scheduleReader;
     this.taskDefinitionReader = taskDefinitionReader;
     this.runner              = runner;
     this.historyWriter       = historyWriter;
     this.scheduleWriter      = scheduleWriter;
     this.preconditionReader  = preconditionReader;
     this.dueTasksFilter      = dueTasksFilter;
     this.historyReader       = historyReader;
     this.serviceScopeFactory = serviceScopeFactory;
     Logger = logger;
     this.inbuiltTaskPreconditionsProvider = inbuiltTaskPreconditionsProvider;
     this.taskDefinitionStateReader        = taskDefinitionStateReader;
     this.taskDefinitionStateWriter        = taskDefinitionStateWriter;
     this.faultHandler         = faultHandler;
     this.faultReporter        = faultReporter;
     this.onDemandQueueManager = onDemandQueueManager;
     this.taskRunnerLogger     = taskRunnerLogger;
 }
 public MassTransitFaultConsumer(IFaultHandler <TMessage> handler)
 {
     _handler = handler;
 }
예제 #4
0
 public MessageRequester(IHttpClientFactory httpClientFactory, IFaultHandler faultHandler)
 {
     this.httpClientFactory = httpClientFactory;
     this.faultHandler      = faultHandler;
 }