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())); }
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())); }