public BaseConfigService(
     SupportConfiguration configurationService,
     SupportWebHosting webHostingService)
 {
     _configurationService = configurationService;
     _webHostingService    = webHostingService;
 }
 public ConfigurationManagerService(
     SupportJsonConfigurationManager jsonConfigurationManagerService
     , SupportConfiguration configurationService
     , SupportWebHosting webHostingService)
     : base(configurationService, webHostingService)
 {
     _jsonConfigurationManagerService = jsonConfigurationManagerService;
 }
 public PreConfigurationService(SupportConfiguration configuration,
                                SupportWebHosting webHosting,
                                SupportLoggerProviders loggerProviders)
 {
     _configuraion    = configuration;
     _loggerProviders = loggerProviders;
     _webHosting      = webHosting;
 }
 public static void UpdateGetWebHosting(this IServiceCollection services, out SupportWebHosting configurationService)
 {
     services.BuildGetServiceProvider(out var serviceProvider);
     configurationService = serviceProvider
                            .GetRequiredService <SupportWebHosting>();
 }
        public static IApplicationBuilder UseExceptionMiddleware(this IApplicationBuilder app, SupportWebHosting env)
        {
            if (env.Service.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseMigrationsEndPoint();
            }
            else
            {
                app.UseStatusCodePagesWithReExecute("/Error", "?scode={0}");
                app.UseExceptionHandler("/Error");
            }

            return(app);
        }