Class RetryingEventArgs
Contains information required for the Retrying event.
Inheritance
System.Object
System.EventArgs
Namespace: Umbraco.Core.Persistence.FaultHandling
Assembly: Umbraco.Core.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. |
System.TimeSpan | delay | The delay indicating how long the current thread will be suspended for before the next iteration will be invoked. |
System.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 |
---|---|
System.TimeSpan |
LastException
Gets the exception which caused the retry conditions to occur.
Declaration
public Exception LastException { get; }
Property Value
Type | Description |
---|---|
System.Exception |