Beispiel #1
0
 public QueryHandler(ILogger <QueryHandler> logger, IBroadcastStore broadcastStore)
 {
     this.logger         = logger ?? throw new ArgumentNullException(nameof(logger));
     this.broadcastStore = broadcastStore ?? throw new ArgumentNullException(nameof(broadcastStore));
 }
Beispiel #2
0
 public CommandHandler(ILogger <CommandHandler> logger, IBroadcastStore broadcastStore, IHubContext <BroadcastHub, IBroadcastClient> hubContext)
 {
     this.logger         = logger ?? throw new ArgumentNullException(nameof(logger));
     this.broadcastStore = broadcastStore ?? throw new ArgumentNullException(nameof(broadcastStore));
     this.hubContext     = hubContext ?? throw new ArgumentNullException(nameof(hubContext));
 }