OperationRetrySettings Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OperationRetrySettings() |
Initializes a new instance of the OperationRetrySettings class with default values for the retry settings. The default value for MaxRetryCount is 10. Default Value for ClientRetryTimeout is infinite which means indefinte retry for non-transient errors. |
OperationRetrySettings(IRetryPolicy) |
Initializes a new instance of the OperationRetrySettings class with the retry Policy supplied. |
OperationRetrySettings(TimeSpan) |
Initializes a new instance of the OperationRetrySettings class The default value for MaxRetryCount is 10 . |
OperationRetrySettings(TimeSpan, TimeSpan, Int32, Int32) |
Initializes a new instance of the OperationRetrySettings class with the supplied settings. |
OperationRetrySettings()
Initializes a new instance of the OperationRetrySettings class with default values for the retry settings. The default value for MaxRetryCount is 10. Default Value for ClientRetryTimeout is infinite which means indefinte retry for non-transient errors.
public OperationRetrySettings ();
Public Sub New ()
Applies to
OperationRetrySettings(IRetryPolicy)
Initializes a new instance of the OperationRetrySettings class with the retry Policy supplied.
public OperationRetrySettings (Microsoft.ServiceFabric.Services.Communication.Client.IRetryPolicy retryPolicy);
new Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings : Microsoft.ServiceFabric.Services.Communication.Client.IRetryPolicy -> Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings
Public Sub New (retryPolicy As IRetryPolicy)
Parameters
- retryPolicy
- IRetryPolicy
Specifies the Retry Policy to be used for the communication between client and service.
Applies to
OperationRetrySettings(TimeSpan)
Initializes a new instance of the OperationRetrySettings class The default value for MaxRetryCount is 10 .
public OperationRetrySettings (TimeSpan clientRetryTimeout);
new Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings : TimeSpan -> Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings
Public Sub New (clientRetryTimeout As TimeSpan)
Parameters
- clientRetryTimeout
- TimeSpan
Specifies the maximum time client retries the call before quitting
Applies to
OperationRetrySettings(TimeSpan, TimeSpan, Int32, Int32)
Initializes a new instance of the OperationRetrySettings class with the supplied settings.
public OperationRetrySettings (TimeSpan maxRetryBackoffIntervalOnTransientErrors, TimeSpan maxRetryBackoffIntervalOnNonTransientErrors, int defaultMaxRetryCountForTransientErrors, int defaultMaxRetryCountForNonTransientErrors = 2147483647);
new Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings : TimeSpan * TimeSpan * int * int -> Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings
Public Sub New (maxRetryBackoffIntervalOnTransientErrors As TimeSpan, maxRetryBackoffIntervalOnNonTransientErrors As TimeSpan, defaultMaxRetryCountForTransientErrors As Integer, Optional defaultMaxRetryCountForNonTransientErrors As Integer = 2147483647)
Parameters
- maxRetryBackoffIntervalOnTransientErrors
- TimeSpan
Specifies the maximum interval to back-off before retrying incase of Transient errors
- maxRetryBackoffIntervalOnNonTransientErrors
- TimeSpan
Specifies the maximum interval to back-off before retrying incase of Non transient errors
- defaultMaxRetryCountForTransientErrors
- Int32
Specifies the maximum number of times to retry for transient errors.
- defaultMaxRetryCountForNonTransientErrors
- Int32
Specifies the maximum number of times to retry for non-transient errors.
Applies to
Azure SDK for .NET