Example #1
0
 public SystemController(Management.ICertifyManager manager)
 {
     _certifyManager = manager;
 }
Example #2
0
        // 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
        }
Example #3
0
 public ManagedCertificatesController(Management.ICertifyManager manager)
 {
     _certifyManager = manager;
 }
Example #4
0
 public ServerController(Management.ICertifyManager manager)
 {
     _certifyManager = manager;
 }
Example #5
0
 public AuthController(Management.ICertifyManager manager)
 {
     _certifyManager = manager;
 }
Example #6
0
 public AccountsController(Management.ICertifyManager manager)
 {
     _certifyManager = manager;
 }
Example #7
0
 public ContactsController(Management.ICertifyManager manager)
 {
     _certifyManager = manager;
 }