Table of Contents

Class ApplicationContext

Namespace
Azure.Iot.Operations.Protocol
Assembly
Azure.Iot.Operations.Protocol.dll

Application-wide context containing shared resources like the HybridLogicalClock. There should only be one instance per application, shared across all sessions.

public class ApplicationContext : IAsyncDisposable
Inheritance
ApplicationContext
Implements
Inherited Members

Constructors

ApplicationContext(HybridLogicalClock?)

Creates a new ApplicationContext with a HybridLogicalClock.

public ApplicationContext(HybridLogicalClock? hybridLogicalClock = null)

Parameters

hybridLogicalClock HybridLogicalClock

Properties

ApplicationHlc

The HybridLogicalClock used by the application.

public HybridLogicalClock ApplicationHlc { get; }

Property Value

HybridLogicalClock

Methods

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

Returns

ValueTask

A task that represents the asynchronous dispose operation.