Table of Contents

DatabaseWatcher Constructor

Definition

Namespace
Cuemon.Data
Assemblies
Cuemon.Data.dll
Source
src/Cuemon.Data/DatabaseWatcher.cs

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

connection IDbConnection

The IDbConnection used to connect to a database.

readerFactory Func<IDbConnection, IDataReader>

The function delegate that will resolve an implementation of an IDataReader.

setup Action<WatcherOptions>

The WatcherOptions which may be configured.