Méthode | Description | |
---|---|---|
AddDeviceAsync ( |
Adds a device to the DocumentDB. Throws a DeviceAlreadyRegisteredException if a device already exists in the database with the provided deviceId
|
|
DeviceRegistryRepository ( IDocumentDBClient |
||
GetDeviceAsync ( string deviceId ) : Task |
Queries the DocumentDB and retrieves the device based on its deviceId
|
|
GetDeviceList ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.DeviceListQuery query ) : Task |
||
RemoveDeviceAsync ( string deviceId ) : System.Threading.Tasks.Task | ||
UpdateDeviceAsync ( |
Updates an existing device in the DocumentDB Throws a DeviceNotRegisteredException is the device does not already exist in the DocumentDB
|
|
UpdateDeviceEnabledStatusAsync ( string deviceId, bool isEnabled ) : Task |
Méthode | Description | |
---|---|---|
GetAllDevicesAsync ( ) : Task
|
Queries the DocumentDB and retrieves all documents in the collection
|
|
SearchDeviceList ( IQueryable |
||
SearchTypePropertiesForValue ( |
||
SortDeviceList ( IQueryable |
public AddDeviceAsync ( |
||
device | ||
Résultat | Task |
public DeviceRegistryRepository ( IDocumentDBClient |
||
documentClient | IDocumentDBClient |
|
Résultat | System |
public GetDeviceAsync ( string deviceId ) : Task |
||
deviceId | string | DeviceID of the device to retrieve |
Résultat | Task |
public GetDeviceList ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.DeviceListQuery query ) : Task |
||
query | Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.DeviceListQuery | |
Résultat | Task |
public RemoveDeviceAsync ( string deviceId ) : System.Threading.Tasks.Task | ||
deviceId | string | |
Résultat | System.Threading.Tasks.Task |
public UpdateDeviceAsync ( |
||
device | ||
Résultat | Task |
public UpdateDeviceEnabledStatusAsync ( string deviceId, bool isEnabled ) : Task |
||
deviceId | string | |
isEnabled | bool | |
Résultat | Task |