C# 클래스 Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Repository.IotHubRepository

Wraps calls to the IoT hub identity store. IDisposable is implemented in order to close out the connection to the IoT Hub when this object is no longer in use
상속: IIotHubRepository, IDisposable
파일 보기 프로젝트 열기: Azure/azure-iot-remote-monitoring

공개 메소드들

메소드 설명
AddDeviceAsync ( DeviceModel device, Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.SecurityKeys securityKeys ) : Task

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, CommandHistory command ) : System.Threading.Tasks.Task
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

AddDeviceAsync() 공개 메소드

Adds the provided device to the IoT hub with the provided security keys
public AddDeviceAsync ( DeviceModel device, Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.SecurityKeys securityKeys ) : Task
device Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.DeviceModel
securityKeys Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.SecurityKeys
리턴 Task

Dispose() 공개 메소드

Implement the IDisposable interface in order to close the device manager
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetDeviceKeysAsync() 공개 메소드

public GetDeviceKeysAsync ( string deviceId ) : Task
deviceId string
리턴 Task

GetIotHubDeviceAsync() 공개 메소드

public GetIotHubDeviceAsync ( string deviceId ) : Task
deviceId string
리턴 Task

IotHubRepository() 공개 메소드

public IotHubRepository ( IIoTHubDeviceManager deviceManager ) : System
deviceManager IIoTHubDeviceManager
리턴 System

RemoveDeviceAsync() 공개 메소드

public RemoveDeviceAsync ( string deviceId ) : System.Threading.Tasks.Task
deviceId string
리턴 System.Threading.Tasks.Task

SendCommand() 공개 메소드

public SendCommand ( string deviceId, CommandHistory command ) : System.Threading.Tasks.Task
deviceId string
command Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.CommandHistory
리턴 System.Threading.Tasks.Task

TryAddDeviceAsync() 공개 메소드

Attempts to add the device as a new device and swallows all exceptions
public TryAddDeviceAsync ( Device oldIotHubDevice ) : Task
oldIotHubDevice Device The IoT Hub Device to add back into the IoT Hub
리턴 Task

TryRemoveDeviceAsync() 공개 메소드

Attempts to remove the device from the IoT Hub and eats any exceptions that are thrown during the delete process.
public TryRemoveDeviceAsync ( string deviceId ) : Task
deviceId string ID of the device to remove
리턴 Task

UpdateDeviceEnabledStatusAsync() 공개 메소드

public UpdateDeviceEnabledStatusAsync ( string deviceId, bool isEnabled ) : Task
deviceId string
isEnabled bool
리턴 Task