Method | 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 |
Method | Description | |
---|---|---|
GetAllDevicesAsync ( ) : Task
|
Queries the DocumentDB and retrieves all documents in the collection
|
|
SearchDeviceList ( IQueryable |
||
SearchTypePropertiesForValue ( |
||
SortDeviceList ( IQueryable |
public AddDeviceAsync ( |
||
device | ||
return | Task |
public DeviceRegistryRepository ( IDocumentDBClient |
||
documentClient | IDocumentDBClient |
|
return | System |
public GetDeviceAsync ( string deviceId ) : Task |
||
deviceId | string | DeviceID of the device to retrieve |
return | Task |
public GetDeviceList ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.DeviceListQuery query ) : Task |
||
query | Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.DeviceListQuery | |
return | Task |
public RemoveDeviceAsync ( string deviceId ) : System.Threading.Tasks.Task | ||
deviceId | string | |
return | System.Threading.Tasks.Task |
public UpdateDeviceAsync ( |
||
device | ||
return | Task |
public UpdateDeviceEnabledStatusAsync ( string deviceId, bool isEnabled ) : Task |
||
deviceId | string | |
isEnabled | bool | |
return | Task |