コード例 #1
0
 public FaultHandlingDbCommand(RetryDbConnection connection, DbCommand command, RetryPolicy cmdRetryPolicy)
 {
     _connection     = connection;
     _inner          = command;
     _cmdRetryPolicy = cmdRetryPolicy ?? RetryPolicy.NoRetry;
 }
コード例 #2
0
        public RetryDbConnection(DbConnection connection, RetryPolicy conRetryPolicy, RetryPolicy cmdRetryPolicy)
        {
            _inner              = connection;
            _inner.StateChange += StateChangeHandler;

            _conRetryPolicy = conRetryPolicy ?? RetryPolicy.NoRetry;
            _cmdRetryPolicy = cmdRetryPolicy;
        }