Closed sonsy-soft closed 4 years ago
Are you using AutofacSerilogIntegration 4.0.0? If yes, then that error is expected (see #39)
Support for Autofac 6.0.0 is currently in-progress (see #40)
You might want to try the latest pre-release build (5.0.0-dev-00050
as of this writing)
thanks. I didn't know version 6.0.0 is in progress be success.
when I upgrade Autofac to vsesion 6.0.0 I got the exception
System.MissingMethodException: Method not found: 'Void Autofac.Core.IComponentRegistration.add_Preparing(System.EventHandler
1<Autofac.Core.PreparingEventArgs>)'. at AutofacSerilogIntegration.ContextualLoggingModule.AttachToComponentRegistration(IComponentRegistryBuilder componentRegistry, IComponentRegistration registration) at Autofac.Module.<AttachToRegistrations>b__4_0(Object sender, ComponentRegisteredEventArgs e) at Autofac.Core.Registration.ComponentRegistryBuilder.add_Registered(EventHandler
1 value) at Autofac.Module.AttachToRegistrations(IComponentRegistryBuilder componentRegistry) at Autofac.Module.Configure(IComponentRegistryBuilder componentRegistry) at Autofac.ContainerBuilder.Build(IComponentRegistryBuilder componentRegistry, Boolean excludeDefaultModules) at Autofac.ContainerBuilder.Build(ContainerBuildOptions options) at Autofac.Extensions.DependencyInjection.AutofacServiceProviderFactory.CreateServiceProvider(ContainerBuilder containerBuilder) at Microsoft.Extensions.Hosting.Internal.ServiceFactoryAdapter`1.CreateServiceProvider(Object containerBuilder) at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider() at Microsoft.Extensions.Hosting.HostBuilder.Build()