C# Class Google.Apis.Tests.MockBackOffHandler

Base mock back-off handler which contains a list of all waited time spans.
Inheritance: Google.Apis.Http.BackOffHandler
Afficher le fichier Open project: Gainedge/BetterExplorer

Méthodes publiques

Méthode Description
MockBackOffHandler ( BackOffHandler initializer ) : System

Constructs a new back-off handler by the given initializer.

MockBackOffHandler ( IBackOff backOff ) : System

Constructs a new back-off handler by the given back-off.

Méthodes protégées

Méthode Description
Wait ( System.TimeSpan ts, CancellationToken cancellationToken ) : Task

Method Details

MockBackOffHandler() public méthode

Constructs a new back-off handler by the given initializer.
public MockBackOffHandler ( BackOffHandler initializer ) : System
initializer Google.Apis.Http.BackOffHandler
Résultat System

MockBackOffHandler() public méthode

Constructs a new back-off handler by the given back-off.
public MockBackOffHandler ( IBackOff backOff ) : System
backOff IBackOff
Résultat System

Wait() protected méthode

protected Wait ( System.TimeSpan ts, CancellationToken cancellationToken ) : Task
ts System.TimeSpan
cancellationToken System.Threading.CancellationToken
Résultat Task