C# Class MicroServices.Common.General.Util.Try

Exibir arquivo Open project: rbanks54/microcafe

Public Methods

Method Description
OnFailedAttempt ( System.Action action ) : Try
Times ( ) : TryResult
To ( System.Action action ) : Try
UpTo ( int maxAttempts ) : Try

Protected Methods

Method Description
Attempt ( ) : TryResult
Try ( System.Action action ) : System

Method Details

Attempt() protected method

protected Attempt ( ) : TryResult
return TryResult

OnFailedAttempt() public method

public OnFailedAttempt ( System.Action action ) : Try
action System.Action
return Try

Times() public method

public Times ( ) : TryResult
return TryResult

To() public static method

public static To ( System.Action action ) : Try
action System.Action
return Try

Try() protected method

protected Try ( System.Action action ) : System
action System.Action
return System

UpTo() public method

public UpTo ( int maxAttempts ) : Try
maxAttempts int
return Try