public ContextlessLoggingFactory( ILogger <DbConnection> logger, DbLoggingConfiguration config, Func <DbConnection> factory) { _hooks = new LoggingHook <Empty>(logger, config); _factory = new WrappedConnectionFactory <Empty>(factory); }
public ContextfulLoggingFactory( ILogger <IDbConnectionFactory <T> > logger, DbLoggingConfiguration config, Func <DbConnection> factory) { _hooks = new LoggingHook <T>(logger, config); _factory = new WrappedConnectionFactory <T>(factory); }