RecommendedAction Enum

Definition

The recommended action for device applications to take in response to a connection change event.

public enum RecommendedAction
type RecommendedAction = 
Public Enum RecommendedAction
Inheritance
RecommendedAction

Fields

Name Value Description
OpenConnection 0

It's recommended to initialize (if previously open, dispose, and then call open) the device client when the client is not connected.

PerformNormally 1

It's recommended to perform operations normally on your device client as it is successfully connected to the IoT hub.

WaitForRetryPolicy 2

It's recommended to not perform any operations on the client while it is trying to reconnect.

Quit 3

This is a terminal state of the client where it is unclear if the device will ever be able to connect, and may require manual intervention.

Applies to