Class ExpirationExtensions (4.4.0)

public static class ExpirationExtensions

Extension methods for Expiration.

Inheritance

object > ExpirationExtensions

Namespace

Google.Api.Gax

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
Name Description
expiration Expiration

Expiration, may be null.

clock IClock

IClock to use for deadline calculation.

Returns
Type Description
DateTime

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