Exemple #1
0
 public VotingController(
     IWebSocketPublisher ws,
     IConnectionMultiplexer redis,
     ILogger <VotingController> logger)
 {
     _logger  = logger;
     _ws      = ws;
     _redisDb = redis.GetDatabase();
 }
Exemple #2
0
        // 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();
        }
Exemple #3
0
 public VotingController(Voting voting, IWebSocketPublisher wsPublisher)
 {
     _voting      = voting;
     _wsPublisher = wsPublisher;
 }
Exemple #4
0
 public QuizResultsAppService(IDocumentStore eventStore, IBus bus, IWebSocketPublisher wsBus)
 {
     _bus        = bus;
     _wsBus      = wsBus;
     _eventStore = eventStore;
 }
Exemple #5
0
 public QuizResultsAppService(IBus bus, IWebSocketPublisher wsBus)
 {
     _bus   = bus;
     _wsBus = wsBus;
 }
Exemple #6
0
 public VotingController(IVotingService votingService, IWebSocketPublisher wsPublisher, IOptions <VotingOptions> options)
 {
     _votingService = votingService;
     _wsPublisher   = wsPublisher;
     _votingStep    = options?.Value?.VotingStep ?? 1;
 }