public QueryHandler(ILogger <QueryHandler> logger, IBroadcastStore broadcastStore) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.broadcastStore = broadcastStore ?? throw new ArgumentNullException(nameof(broadcastStore)); }
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)); }