public EfIntegrationActivation(EfInterceptorDescriptor descriptor)
 {
     DbInterception.Add(new EfIntegrationLoggerInterceptor(descriptor));
     DatabaseExtensions.LoggingServiceProvider         = descriptor.ExposeLoggingServiceProvider;
     DatabaseExtensions.GlobalSimpleLoggingInterceptor = descriptor.ExposeSettings.SimgleLoggingAction;
     DatabaseExtensions.Settings = descriptor.ExposeSettings;
 }
Пример #2
0
 internal EfIntegrationLoggerInterceptor(EfInterceptorDescriptor descriptor)
 {
     _descriptor             = descriptor ?? throw new ArgumentNullException(nameof(descriptor));
     _loggingServiceProvider = descriptor.ExposeLoggingServiceProvider;
 }