Class ExpirationExtensions (4.3.1)

public static class ExpirationExtensions

Extension methods for Expiration.

Inheritance

object > ExpirationExtensions

Namespace

GoogleGoogle.ApiGax

Assembly

Google.Api.Gax.dll

Methods

CalculateDeadline(Expiration, IClock)

public static DateTime? CalculateDeadline(this Expiration expiration, IClock clock)

Calculate a deadline from an Expiration and a IClock.

Parameters
NameDescription
expirationExpiration

Expiration, may be null.

clockIClock

IClock to use for deadline calculation.

Returns
TypeDescription
DateTime

The calculated absolute deadline, or null if no deadline should be used.