Property | 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 |
Method | 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
|
Method | Description | |
---|---|---|
InitCommandProcessors ( ) : void |
Builds up a set of commands supported by this device
|
|
InitDeviceInfo ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.InitialDeviceConfig config ) : void |
Method | 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 | |
return | System |
public GetDeviceInfo ( ) : |
||
return |
public Init ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.InitialDeviceConfig config ) : void | ||
config | Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.InitialDeviceConfig | |
return | void |
protected InitDeviceInfo ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.InitialDeviceConfig config ) : void | ||
config | Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Models.InitialDeviceConfig | |
return | void |
public StartAsync ( |
||
token | ||
return | Task |
protected IConfigurationProvider ConfigProvider | ||
return | IConfigurationProvider |
protected CommandProcessor,Microsoft.Azure.Devices.Applications.RemoteMonitoring.Simulator.WebJob.SimulatorCore.CommandProcessors RootCommandProcessor | ||
return | Microsoft.Azure.Devices.Applications.RemoteMonitoring.Simulator.WebJob.SimulatorCore.CommandProcessors.CommandProcessor |
protected ITelemetryFactory TelemetryFactory | ||
return | ITelemetryFactory |
protected ITransportFactory TransportFactory | ||
return | ITransportFactory |