예제 #1
0
 public ReliableSqlConnection(ReliableConnectionFactory factory, SqlConnection sqlConnection, RetryPolicy connectionRetryPolicy, RetryPolicy commandRetryPolicy)
 {
     this._factory                        = factory;
     this._innerConnection                = sqlConnection;
     this._connectionRetryPolicy          = connectionRetryPolicy;
     this._commandRetryPolicy             = commandRetryPolicy;
     this._connectionStringFailoverPolicy = new RetryPolicy <ReliableSqlConnection.NetworkConnectivityErrorDetectionStrategy>(1, TimeSpan.FromMilliseconds(1.0));
 }
 internal ReliableDbCommand(ReliableConnectionFactory factory, SqlCommand innerDbCommand, ReliableSqlConnection connection)
 {
     _factory        = factory;
     _innerDbCommand = innerDbCommand;
     _connection     = connection;
 }