Table of Contents

Class WallClock

Namespace
Azure.Iot.Operations.Protocol
Assembly
Azure.Iot.Operations.Protocol.dll
public class WallClock : IWallClock
Inheritance
WallClock
Implements
Inherited Members

Properties

UtcNow

public DateTime UtcNow { get; }

Property Value

DateTime

Methods

CreateCancellationTokenSource(TimeSpan)

public CancellationTokenSource CreateCancellationTokenSource(TimeSpan delay)

Parameters

delay TimeSpan

Returns

CancellationTokenSource

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

public 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