RetryAction<T> Class

Summary

Executes an action with automatic linear-backoff retries when a T exception is thrown, discarding the return value.
Assembly
GitVersion.Core.dll
Namespace
GitVersion.Helpers
Base Types
graph BT Type-->Base0["RetryAction<T, bool>"] Base0-->Base1["Object"] Type["RetryAction<T>"] class Type type-node

Syntax

public class RetryAction<T> : RetryAction<T, bool> where T : Exception

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Type Parameters

Name Description
T

Constructors

Name Summary
RetryAction(int) Executes an action with automatic linear-backoff retries when a T exception is thrown, discarding the return value.

Methods

Name Value Summary
Execute(Action) void
Executes operation, retrying on T up to the configured maximum number of times.

Extension Methods

Name Value Summary
NotNull<RetryAction<T>>(string) T
Throws System.ArgumentNullException when value is null; otherwise returns the value.