public SystemController(Management.ICertifyManager manager) { _certifyManager = manager; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHubContext <Service.StatusHub> statusHubContext, Management.ICertifyManager certifyManager) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } // set status report context provider certifyManager.SetStatusReporting(new Service.StatusHubReporting(statusHubContext)); // // app.UseHttpsRedirection(); app.UseRouting(); app.UseCors(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapHub <Service.StatusHub>("/api/status"); endpoints.MapControllers(); }); #if DEBUG // Enable middleware to serve generated Swagger as a JSON endpoint. app.UseSwagger(); // Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.), // specifying the Swagger JSON endpoint. app.UseSwaggerUI(c => { c.RoutePrefix = "docs"; c.DocumentTitle = "Certify Core Server API"; c.SwaggerEndpoint("/swagger/v1/swagger.json", "Certify Core Server API"); }); #endif }
public ManagedCertificatesController(Management.ICertifyManager manager) { _certifyManager = manager; }
public ServerController(Management.ICertifyManager manager) { _certifyManager = manager; }
public AuthController(Management.ICertifyManager manager) { _certifyManager = manager; }
public AccountsController(Management.ICertifyManager manager) { _certifyManager = manager; }
public ContactsController(Management.ICertifyManager manager) { _certifyManager = manager; }