public Jobs(IServiceProvider provider)
 {
     _hubContext        = provider.GetRequiredService <IHubContextWrapper>();
     _unitOfWork        = provider.GetRequiredService <IUnitOfWork>();
     _queryDispatcher   = provider.GetRequiredService <IQueryDispatcher>();
     _commandDispatcher = provider.GetRequiredService <ICommandDispatcher>();
 }
Beispiel #2
0
 public ReportService(IHubContextWrapper <ReportHub> hub)
 {
     if (hub == null)
     {
         throw new ArgumentNullException("hub");
     }
     this.hub = hub;
 }
Beispiel #3
0
 public ReportService(IHubContextWrapper<ReportHub> hub)
 {
     if (hub == null)
     {
         throw new ArgumentNullException("hub");
     }
     this.hub = hub;
 }
Beispiel #4
0
 public LogRealtimeService(IHubContextWrapper <LogHub> hub)
 {
     if (hub == null)
     {
         throw new ArgumentNullException("hub");
     }
     this.hub = hub;
 }
Beispiel #5
0
 public LogRealtimeService(IHubContextWrapper<LogHub> hub)
 {
     if (hub == null)
     {
         throw new ArgumentNullException("hub");
     }
     this.hub = hub;
 }
 public ScenarioExecutionService(IScenarioExecutionRepository executionRepository, IHubContextWrapper<ReportHub> hub)
 {
     if (executionRepository == null)
     {
         throw new ArgumentNullException("executionRepository");
     }
     if (hub == null)
     {
         throw new ArgumentNullException("hub");
     }
     this.executionRepository = executionRepository;
     this.hub = hub;
 }
Beispiel #7
0
 public ScenarioExecutionService(IScenarioExecutionRepository executionRepository, IHubContextWrapper <ReportHub> hub)
 {
     if (executionRepository == null)
     {
         throw new ArgumentNullException("executionRepository");
     }
     if (hub == null)
     {
         throw new ArgumentNullException("hub");
     }
     this.executionRepository = executionRepository;
     this.hub = hub;
 }
Beispiel #8
0
 public SignalRController(IHubContextWrapper hubContext, ICommandDispatcher commandDispatcher)
 {
     _hubContext        = hubContext;
     _commandDispatcher = commandDispatcher;
 }