public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IRedisData redisService) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); redisService.Connect(); app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1"); }); }
public RedisRepository(IRedisData redisData) { _redisData = redisData; }