Exemplo n.º 1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseWebSockets();
            app.UseDefaultFiles();
            app.UseStaticFiles();
            app.UseMvc();

            var redisConfig = Configuration.GetSection("Redis");

            RedisService.Begin(redisConfig.GetValue <string>("host"), redisConfig.GetValue <int>("port"));
        }