Class RetryingEventArgs
Contains information required for the Retrying event.
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.Persistence.FaultHandling
Assembly: Umbraco.Infrastructure.dll
Syntax
public class RetryingEventArgs : EventArgs
Constructors
View SourceRetryingEventArgs(Int32, TimeSpan, Exception)
Initializes a new instance of the RetryingEventArgs class.
Declaration
public RetryingEventArgs(int currentRetryCount, TimeSpan delay, Exception lastException)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | currentRetryCount | The current retry attempt count. |
TimeSpan | delay | The delay indicating how long the current thread will be suspended for before the next iteration will be invoked. |
Exception | lastException | The exception which caused the retry conditions to occur. |
Properties
View SourceCurrentRetryCount
Gets the current retry count.
Declaration
public int CurrentRetryCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Delay
Gets the delay indicating how long the current thread will be suspended for before the next iteration will be invoked.
Declaration
public TimeSpan Delay { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
LastException
Gets the exception which caused the retry conditions to occur.
Declaration
public Exception LastException { get; }
Property Value
Type | Description |
---|---|
Exception |