public EfIntegrationActivation(EfInterceptorDescriptor descriptor) { DbInterception.Add(new EfIntegrationLoggerInterceptor(descriptor)); DatabaseExtensions.LoggingServiceProvider = descriptor.ExposeLoggingServiceProvider; DatabaseExtensions.GlobalSimpleLoggingInterceptor = descriptor.ExposeSettings.SimgleLoggingAction; DatabaseExtensions.Settings = descriptor.ExposeSettings; }
internal EfIntegrationLoggerInterceptor(EfInterceptorDescriptor descriptor) { _descriptor = descriptor ?? throw new ArgumentNullException(nameof(descriptor)); _loggingServiceProvider = descriptor.ExposeLoggingServiceProvider; }