Méthode | Description | |
---|---|---|
AddDeviceAsync ( |
Adds a device to the Device Identity Store and Device Registry
|
|
ApplyDevicePropertyValueModels ( |
Modified a Device using a list of DevicePropertyValueModel.
|
|
BootstrapDefaultDevices ( ) : Task
|
||
DeviceLogic ( IIotHubRepository iotHubRepository, IDeviceRegistryCrudRepository deviceRegistryCrudRepository, IDeviceRegistryListRepository deviceRegistryListRepository, IVirtualDeviceStorage virtualDeviceStorage, ISecurityKeyGenerator securityKeyGenerator, IConfigurationProvider configProvider, IDeviceRulesLogic deviceRulesLogic ) : System | ||
ExtractDevicePropertyValuesModels ( |
||
ExtractLocationsData ( List |
||
ExtractTelemetry ( |
||
GenerateNDevices ( int deviceCount ) : System.Threading.Tasks.Task |
Generates N devices with random data and properties for testing NOTE: Adds the devices to both the device registry and device identity repository TEMPORARY DEVICE GENERATION CODE FOR TESTING PURPOSES! |
|
GetDeviceAsync ( string deviceId ) : Task |
||
GetDevices ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.DeviceListQuery q ) : Task |
||
GetIoTHubKeysAsync ( string deviceId ) : Task |
Retrieves the IoT Hub keys for the given device
|
|
RemoveDeviceAsync ( string deviceId ) : System.Threading.Tasks.Task |
Removes a device from the underlying repositories
|
|
SendCommandAsync ( string deviceId, string commandName, dynamic parameters ) : System.Threading.Tasks.Task |
Send a command to a device based on the provided device id
|
|
UpdateDeviceAsync ( |
Updates the device in the device registry with the exact device provided in this call. NOTE: The device provided here should represent the entire device that will be serialized into the device registry.
|
|
UpdateDeviceEnabledStatusAsync ( string deviceId, bool isEnabled ) : Task |
||
UpdateDeviceFromDeviceInfoPacketAsync ( |
Méthode | Description | |
---|---|---|
AddDeviceToRepositoriesAsync ( |
Adds the given device and assigned keys to the underlying repositories
|
|
AddOrRemoveSimulatedDevice ( |
||
ApplyPropertyValueModels ( |
||
CheckIfDeviceExists ( |
||
ExtractPropertyValueModels ( |
||
GetDevicePropertyConfiguration ( ) : IEnumerable |
||
SendCommandAsyncWithDevice ( |
Sends a command to the provided device and updates the command history of the device
|
|
ValidateDevice ( |
||
ValidateDeviceId ( |
public AddDeviceAsync ( |
||
device | Device to add to the underlying repositories | |
Résultat | Task |
public ApplyDevicePropertyValueModels ( |
||
device | /// The Device to modify. /// | |
devicePropertyValueModels | IEnumerable |
/// The list of |
Résultat | void |
public DeviceLogic ( IIotHubRepository iotHubRepository, IDeviceRegistryCrudRepository deviceRegistryCrudRepository, IDeviceRegistryListRepository deviceRegistryListRepository, IVirtualDeviceStorage virtualDeviceStorage, ISecurityKeyGenerator securityKeyGenerator, IConfigurationProvider configProvider, IDeviceRulesLogic deviceRulesLogic ) : System | ||
iotHubRepository | IIotHubRepository | |
deviceRegistryCrudRepository | IDeviceRegistryCrudRepository | |
deviceRegistryListRepository | IDeviceRegistryListRepository | |
virtualDeviceStorage | IVirtualDeviceStorage | |
securityKeyGenerator | ISecurityKeyGenerator | |
configProvider | IConfigurationProvider | |
deviceRulesLogic | IDeviceRulesLogic | |
Résultat | System |
public ExtractDevicePropertyValuesModels ( |
||
device | ||
Résultat | IEnumerable |
public ExtractLocationsData ( List |
||
devices | List |
|
Résultat | Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.DeviceListLocationsModel |
public ExtractTelemetry ( |
||
device | ||
Résultat | IList |
public GenerateNDevices ( int deviceCount ) : System.Threading.Tasks.Task | ||
deviceCount | int | Number of devices to generate |
Résultat | System.Threading.Tasks.Task |
public GetDeviceAsync ( string deviceId ) : Task |
||
deviceId | string | |
Résultat | Task |
public GetDevices ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.DeviceListQuery q ) : Task |
||
q | Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.DeviceListQuery | |
Résultat | Task |
public GetIoTHubKeysAsync ( string deviceId ) : Task |
||
deviceId | string | ID of the device to retrieve |
Résultat | Task |
public RemoveDeviceAsync ( string deviceId ) : System.Threading.Tasks.Task | ||
deviceId | string | ID of the device to remove |
Résultat | System.Threading.Tasks.Task |
public SendCommandAsync ( string deviceId, string commandName, dynamic parameters ) : System.Threading.Tasks.Task | ||
deviceId | string | The Device's ID |
commandName | string | The name of the command |
parameters | dynamic | The parameters to send |
Résultat | System.Threading.Tasks.Task |
public UpdateDeviceAsync ( |
||
device | Device to update in the device registry | |
Résultat | Task |
public UpdateDeviceEnabledStatusAsync ( string deviceId, bool isEnabled ) : Task |
||
deviceId | string | |
isEnabled | bool | |
Résultat | Task |
public UpdateDeviceFromDeviceInfoPacketAsync ( |
||
device | ||
Résultat | Task |