public void Configure(IApplicationBuilder app, IHostingEnvironment env, WaferContext waferContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseCors("AllowSpecificOrigin"); app.UseBasicAuthenticationMiddleware(); app.UseSwagger(); app.UseSwaggerUI(sg => { sg.SwaggerEndpoint("/swagger/v1/swagger.json", "Wafer Apis V1"); sg.ShowRequestHeaders(); }); app.UseMvc(); WaferContextInitializer.Init(waferContext); }
public AccountController(WaferContext context, IMemoryCache memoryCache) { _context = context; _memoryCache = memoryCache; }
public UsersController(WaferContext context) { _context = context; }