Méthode | Description | |
---|---|---|
AddDeviceAsync ( |
Adds the provided device to the IoT hub with the provided security keys
|
|
Dispose ( ) : void |
Implement the IDisposable interface in order to close the device manager
|
|
GetDeviceKeysAsync ( string deviceId ) : Task |
||
GetIotHubDeviceAsync ( string deviceId ) : Task |
||
IotHubRepository ( IIoTHubDeviceManager deviceManager ) : System | ||
RemoveDeviceAsync ( string deviceId ) : System.Threading.Tasks.Task | ||
SendCommand ( string deviceId, |
||
TryAddDeviceAsync ( Device oldIotHubDevice ) : Task |
Attempts to add the device as a new device and swallows all exceptions
|
|
TryRemoveDeviceAsync ( string deviceId ) : Task |
Attempts to remove the device from the IoT Hub and eats any exceptions that are thrown during the delete process.
|
|
UpdateDeviceEnabledStatusAsync ( string deviceId, bool isEnabled ) : Task |
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
public AddDeviceAsync ( |
||
device | ||
securityKeys | Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.SecurityKeys | |
Résultat | Task |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Résultat | void |
public GetDeviceKeysAsync ( string deviceId ) : Task |
||
deviceId | string | |
Résultat | Task |
public GetIotHubDeviceAsync ( string deviceId ) : Task |
||
deviceId | string | |
Résultat | Task |
public IotHubRepository ( IIoTHubDeviceManager deviceManager ) : System | ||
deviceManager | IIoTHubDeviceManager | |
Résultat | System |
public RemoveDeviceAsync ( string deviceId ) : System.Threading.Tasks.Task | ||
deviceId | string | |
Résultat | System.Threading.Tasks.Task |
public SendCommand ( string deviceId, |
||
deviceId | string | |
command | ||
Résultat | System.Threading.Tasks.Task |
public TryAddDeviceAsync ( Device oldIotHubDevice ) : Task |
||
oldIotHubDevice | Device | The IoT Hub Device to add back into the IoT Hub |
Résultat | Task |
public TryRemoveDeviceAsync ( string deviceId ) : Task |
||
deviceId | string | ID of the device to remove |
Résultat | Task |
public UpdateDeviceEnabledStatusAsync ( string deviceId, bool isEnabled ) : Task |
||
deviceId | string | |
isEnabled | bool | |
Résultat | Task |