Свойство | Type | Description | |
---|---|---|---|
ConfigProvider | IConfigurationProvider | ||
Logger | ILogger | ||
RootCommandProcessor | Microsoft.Azure.Devices.Applications.RemoteMonitoring.Simulator.WebJob.SimulatorCore.CommandProcessors.CommandProcessor | ||
TelemetryFactory | ITelemetryFactory | ||
Transport | ITransport | ||
TransportFactory | ITransportFactory | ||
_telemetryController | object |
Méthode | Description | |
---|---|---|
DeviceBase ( ILogger logger, ITransportFactory transportFactory, ITelemetryFactory telemetryFactory, IConfigurationProvider configurationProvider ) : System |
|
|
GetDeviceInfo ( ) : |
Generates a DeviceInfo packet for a simulated device to send over the wire
|
|
Init ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.InitialDeviceConfig config ) : void | ||
SendDeviceInfo ( ) : Task | ||
StartAsync ( |
Starts the send event loop and runs the receive loop in the background to listen for commands that are sent to the device
|
Méthode | Description | |
---|---|---|
InitCommandProcessors ( ) : void |
Builds up a set of commands supported by this device
|
|
InitDeviceInfo ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.InitialDeviceConfig config ) : void |
Méthode | Description | |
---|---|---|
StartReceiveLoopAsync ( |
Starts the loop that listens for events/commands from the IoT Hub to be sent to this device
|
|
StartSendLoopAsync ( |
Iterates through the list of IEventGroups and fires off the events in a given event group before moving to the next. If RepeatEventListForever is true the device will continue to loop through each event group, if false once a single pass is made through all event groups the device will stop sending events
|
public DeviceBase ( ILogger logger, ITransportFactory transportFactory, ITelemetryFactory telemetryFactory, IConfigurationProvider configurationProvider ) : System | ||
logger | ILogger | Logger where this device will log information to |
transportFactory | ITransportFactory | |
telemetryFactory | ITelemetryFactory | |
configurationProvider | IConfigurationProvider | |
Résultat | System |
public GetDeviceInfo ( ) : |
||
Résultat |
public Init ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.InitialDeviceConfig config ) : void | ||
config | Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.InitialDeviceConfig | |
Résultat | void |
protected InitDeviceInfo ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.InitialDeviceConfig config ) : void | ||
config | Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.InitialDeviceConfig | |
Résultat | void |
public StartAsync ( |
||
token | ||
Résultat | Task |
protected IConfigurationProvider ConfigProvider | ||
Résultat | IConfigurationProvider |
protected CommandProcessor,Microsoft.Azure.Devices.Applications.RemoteMonitoring.Simulator.WebJob.SimulatorCore.CommandProcessors RootCommandProcessor | ||
Résultat | Microsoft.Azure.Devices.Applications.RemoteMonitoring.Simulator.WebJob.SimulatorCore.CommandProcessors.CommandProcessor |
protected ITelemetryFactory TelemetryFactory | ||
Résultat | ITelemetryFactory |
protected ITransportFactory TransportFactory | ||
Résultat | ITransportFactory |