Class DeviceAvailableEventArgs
- Namespace
- Azure.Iot.Operations.Connector
- Assembly
- Azure.Iot.Operations.Connector.dll
public class DeviceAvailableEventArgs : EventArgs, IDisposable
- Inheritance
-
DeviceAvailableEventArgs
- Implements
- Inherited Members
Properties
Device
This device.
public Device Device { get; }
Property Value
DeviceEndpointClient
The client to use to send status updates for this device with.
public DeviceEndpointClient DeviceEndpointClient { get; }
Property Value
DeviceName
The name of this device.
public string DeviceName { get; }
Property Value
InboundEndpointName
The name of the endpoint that became available on this device.
public string InboundEndpointName { get; }
Property Value
LeaderElectionClient
The leader election client used by this connector. It is null if and only if this connector isn't configured to do leader election.
public ILeaderElectionClient? LeaderElectionClient { get; }
Property Value
Remarks
When configured to use leader election, ConnectorWorker automatically subscribes to notifications about leadership position changes using this client and will automatically trigger the cancellation token provided in WhileDeviceIsAvailable if it detects that this connector is no longer the leader.
This client can still be used within WhileDeviceIsAvailable to check the leadership position manually, though.
Users should not attempt to close or dispose this client as the connector will do that for you when appropriate.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()