SetTimestamp Method
Definition
SetTimestamp<T>(T, DateTime?)
Assigns a new timestamp (UtcNow value) to the request.
public static T SetTimestamp<T>(this T request, DateTime? utcTimestamp = null) where T : IMetadata
Parameters
requestTThe IMetadata to extend.
utcTimestampDateTime?The optional DateTime value expressed as the Coordinated Universal Time (UTC).
Returns
- T
A reference to
requestafter the operation has completed.
Type Parameters
TThe model that implements the IMetadata interface.
Exceptions
- ArgumentException
utcTimestamp(when set) was not expressed as the Coordinated Universal Time (UTC).