Table of Contents

Interface IWallClock

Namespace
Azure.Iot.Operations.Protocol
Assembly
Azure.Iot.Operations.Protocol.dll
public interface IWallClock

Properties

UtcNow

DateTime UtcNow { get; }

Property Value

DateTime

Methods

CreateCancellationTokenSource(TimeSpan)

CancellationTokenSource CreateCancellationTokenSource(TimeSpan delay)

Parameters

delay TimeSpan

Returns

CancellationTokenSource

WaitAsync<T>(Task<T>, TimeSpan, CancellationToken)

Task<T> WaitAsync<T>(Task<T> task, TimeSpan timeout, CancellationToken cancellationToken)

Parameters

task Task<T>
timeout TimeSpan
cancellationToken CancellationToken

Returns

Task<T>

Type Parameters

T