C# Class Google.Api.Gax.Expiration

Expiration specified by relative timeout or absolute deadline.
Afficher le fichier Open project: googleapis/gax-dotnet Class Usage Examples

Méthodes publiques

Méthode Description
FromDeadline ( System.DateTime deadline ) : Expiration

Create an Expiration with an absolute deadline.

Deadlines in the past are valid, and will cause immediate failure of the operation being performed.

FromTimeout ( System.TimeSpan timeout ) : Expiration

Create an Expiration with a relative timeout.

Zero or negative timeouts are valid, and will cause immediate failure of the operation being performed.

Private Methods

Méthode Description
Expiration ( System.TimeSpan timeout, System.DateTime deadline ) : System

Method Details

FromDeadline() public static méthode

Create an Expiration with an absolute deadline.
Deadlines in the past are valid, and will cause immediate failure of the operation being performed.
public static FromDeadline ( System.DateTime deadline ) : Expiration
deadline System.DateTime The absolute deadline. Should be a UTC datetime.
Résultat Expiration

FromTimeout() public static méthode

Create an Expiration with a relative timeout.
Zero or negative timeouts are valid, and will cause immediate failure of the operation being performed.
public static FromTimeout ( System.TimeSpan timeout ) : Expiration
timeout System.TimeSpan The relative timeout.
Résultat Expiration