Class ExpirationExtensions
Extension methods for Expiration.
Inheritance
System.Object
ExpirationExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api.Gax
Assembly: Google.Api.Gax.dll
Syntax
public static class ExpirationExtensions
Methods
CalculateDeadline(Expiration, IClock)
Calculate a deadline from an Expiration and a IClock.
Declaration
public static DateTime? CalculateDeadline(this Expiration expiration, IClock clock)
Parameters
Type | Name | Description |
---|---|---|
Expiration | expiration | Expiration, may be null. |
IClock | clock | IClock to use for deadline calculation. |
Returns
Type | Description |
---|---|
System.Nullable<System.DateTime> | The calculated absolute deadline, or null if no deadline should be used. |