示例#1
0
 /// <summary>
 /// Creates a new instance of transient error detection strategy for Shard map manager.
 /// </summary>
 /// <param name="retryBehavior">Behavior for detecting transient errors.</param>
 internal MultiShardQueryTransientErrorDetectionStrategy(RetryBehavior retryBehavior)
 {
     _standardDetectionStrategy = new TransientFaultHandling.SqlDatabaseTransientErrorDetectionStrategy();
     _transientFaultDetector    = retryBehavior.TransientErrorDetector;
 }
 /// <summary>
 /// Creates a new instance of transient error detection strategy for Shard map manager.
 /// </summary>
 /// <param name="retryBehavior">Behavior for detecting transient errors.</param>
 internal MultiShardQueryTransientErrorDetectionStrategy(RetryBehavior retryBehavior)
 {
     _standardDetectionStrategy = new TransientFaultHandling.SqlDatabaseTransientErrorDetectionStrategy();
     _transientFaultDetector = retryBehavior.TransientErrorDetector;
 }