private static void UpdateAutofacContainer(ContainerBuilder builder, AutofacAspNetServiceCollection serviceImpl)
 {
     builder.Populate(serviceImpl.ExposeServices());
     builder.RegisterType <AspNetLoggingServiceProvider>().As <ILoggingServiceProvider>().SingleInstance();
     builder.RegisterInstance(Options.Create((LoggingOptions)serviceImpl.ExposeLogSettings()));
     builder.RegisterInstance(serviceImpl.ExposeLoggingConfiguration());
 }
Exemplo n.º 2
0
 private static void UpdateAutofacContainer(ContainerBuilder builder, AutofacAspNetServiceCollection services)
 {
     builder.Populate(services.ExposeServices());
     builder.RegisterType <AspNetLoggingServiceProvider>().As <ILoggingServiceProvider>().SingleInstance();
     builder.RegisterType <ShortcutPropertyFactoryAccessor>().As <IPropertyFactoryAccessor>().SingleInstance();
     builder.RegisterTraceIdGenerator();
     builder.RegisterInstance(Options.Create((LoggingOptions)services.ExposeLogSettings()));
     builder.RegisterInstance(services.ExposeLoggingConfiguration());
 }