DatabaseWatcher Constructor
Definition
DatabaseWatcher(IDbConnection, Func<IDbConnection, IDataReader>, Action<WatcherOptions>)
Initializes a new instance of the DatabaseWatcher class.
public DatabaseWatcher(IDbConnection connection, Func<IDbConnection, IDataReader> readerFactory, Action<WatcherOptions> setup = null)
Parameters
connectionIDbConnectionThe IDbConnection used to connect to a database.
readerFactoryFunc<IDbConnection, IDataReader>The function delegate that will resolve an implementation of an IDataReader.
setupAction<WatcherOptions>The WatcherOptions which may be configured.