/// <summary> /// /// </summary> public CustomDbLogger(IServiceProvider serviceProvider, string loggerName, DbLoggerOptions options) { _loggerName = loggerName; _options = options; _filter = GetFilter(); _serviceProvider = serviceProvider; }
/// <summary> /// /// </summary> public IgnoreRoutesMiddleware(RequestDelegate next, IOptions <DbLoggerOptions> options) { _options = options.Value; _next = next; }
/// <summary> /// /// </summary> public DbLoggerProvider(IServiceProvider serviceProvider, IOptions <DbLoggerOptions> options) { _serviceProvider = serviceProvider; _options = options != null ? options.Value : throw new ArgumentNullException(nameof(options)); }