public VotingController( IWebSocketPublisher ws, IConnectionMultiplexer redis, ILogger <VotingController> logger) { _logger = logger; _ws = ws; _redisDb = redis.GetDatabase(); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory, IWebSocketPublisher publisher) { app.UseEasyWebSockets(); app.UseDefaultFiles(); app.UseStaticFiles(); loggerFactory.AddConsole(); loggerFactory.AddDebug(); }
public VotingController(Voting voting, IWebSocketPublisher wsPublisher) { _voting = voting; _wsPublisher = wsPublisher; }
public QuizResultsAppService(IDocumentStore eventStore, IBus bus, IWebSocketPublisher wsBus) { _bus = bus; _wsBus = wsBus; _eventStore = eventStore; }
public QuizResultsAppService(IBus bus, IWebSocketPublisher wsBus) { _bus = bus; _wsBus = wsBus; }
public VotingController(IVotingService votingService, IWebSocketPublisher wsPublisher, IOptions <VotingOptions> options) { _votingService = votingService; _wsPublisher = wsPublisher; _votingStep = options?.Value?.VotingStep ?? 1; }