public void Log(IServiceProvider serviceProvider, ILogger logger)
 {
     SettingsLogger.LogSettings(
         "app",
         GetConfig(serviceProvider),
         logger);
 }
Ejemplo n.º 2
0
 private void LogSettings(IApplicationBuilder app, ILogger logger)
 {
     SettingsLogger.LogSettings(
         "authdb",
         app.ApplicationServices.GetService <IOptions <Configuration.AuthdbSettings> >().Value,
         logger);
     SettingsLogger.LogSettings(
         "KubeCtl",
         app.ApplicationServices.GetService <IOptions <Configuration.KubeCtlSettings> >().Value,
         logger);
     SettingsLogger.LogSettings(
         "TokenGeneration",
         app.ApplicationServices.GetService <IOptions <TokenGenerationSettings> >().Value,
         logger);
     SettingsLogger.LogSettings(
         "DefaultUser",
         app.ApplicationServices.GetService <IOptions <DefaultUserSettings> >().Value,
         logger);
 }