예제 #1
0
 private static void RegisterCoreComponents(NancyLogServiceCollection serviceImpl)
 {
     serviceImpl.AddDependency(s => s.AddSingleton <ILoggingServiceProvider, NancyLoggingServiceProvider>());
     serviceImpl.BuildConfiguration();
     serviceImpl.ActiveSinkSettings();
     serviceImpl.ActiveOriginConfiguration();
     serviceImpl.AddDependency(s => s.AddSingleton(Options.Create((LoggingOptions)serviceImpl.ExposeLogSettings())));
     serviceImpl.AddDependency(s => s.AddSingleton(serviceImpl.ExposeLoggingConfiguration()));
 }
예제 #2
0
 private static void RegisterCoreComponents(NancyLogServiceCollection serviceImpl)
 {
     serviceImpl.AddDependency(s => s.AddSingleton <ILoggingServiceProvider, NancyLoggingServiceProvider>());
     serviceImpl.AddDependency(s => s.AddSingleton <IPropertyFactoryAccessor, ShortcutPropertyFactoryAccessor>());
     serviceImpl.BuildConfiguration();
     serviceImpl.ActiveSinkSettings();
     serviceImpl.ActiveOriginConfiguration();
     serviceImpl.RegisterTraceIdGenerator();
     serviceImpl.AddDependency(s => s.AddSingleton(Options.Create((LoggingOptions)serviceImpl.ExposeLogSettings())));
     serviceImpl.AddDependency(s => s.AddSingleton(serviceImpl.ExposeLoggingConfiguration()));
 }