public void Configure(IApplicationBuilder app, IWebHostEnvironment env, SRedisService _SRedisService) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } #region Use Middleware app.UseAuthentication(); app.UseAuthorization(); app.UseCors(x => x .AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader()); app.UseSwagger() .UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/CSharpDependency/swagger.json", "CSharp Dependency"); }); app.UseMvc(); #endregion #region Redis Connection _SRedisService.Connect(); #endregion }
public UserController(IMethod _SMethod, SRedisService _SRedisService, IGithub _SGithub, IUser _SUser) : base(_SMethod, _SRedisService) { this._SGithub = _SGithub; this._SUser = _SUser; }
public BaseController(IMethod _SMethod, SRedisService _SRedisService) { this._SMethod = _SMethod; this._SRedisService = _SRedisService; }