Interface IWallClock
- Namespace
- Azure.Iot.Operations.Protocol
- Assembly
- Azure.Iot.Operations.Protocol.dll
public interface IWallClock
Properties
UtcNow
DateTime UtcNow { get; }
Property Value
Methods
CreateCancellationTokenSource(TimeSpan)
CancellationTokenSource CreateCancellationTokenSource(TimeSpan delay)
Parameters
delay
TimeSpan
Returns
WaitAsync<T>(Task<T>, TimeSpan, CancellationToken)
Task<T> WaitAsync<T>(Task<T> task, TimeSpan timeout, CancellationToken cancellationToken)
Parameters
task
Task<T>timeout
TimeSpancancellationToken
CancellationToken
Returns
- Task<T>
Type Parameters
T