public FaultHandlingDbCommand(RetryDbConnection connection, DbCommand command, RetryPolicy cmdRetryPolicy) { _connection = connection; _inner = command; _cmdRetryPolicy = cmdRetryPolicy ?? RetryPolicy.NoRetry; }
public RetryDbConnection(DbConnection connection, RetryPolicy conRetryPolicy, RetryPolicy cmdRetryPolicy) { _inner = connection; _inner.StateChange += StateChangeHandler; _conRetryPolicy = conRetryPolicy ?? RetryPolicy.NoRetry; _cmdRetryPolicy = cmdRetryPolicy; }