CloudEventsServiceInvokeOnDeviceCommand Method

Invokes the Event Grid Topic to send a command to the device that the DeviceReceiver can pick up on.

Definition

Namespace: MobileTrack.Web.Components.Services
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public Task<Guid> InvokeOnDeviceCommand(
	DeviceDto device,
	DeviceCommandType command,
	Object[]? parameters
)

Parameters

device  DeviceDto
Device to send the command to
command  DeviceCommandType
Command to be invoked
parameters  Object
Parameters to be invoked with the command (if need be)

Return Value

TaskGuid
Guid ID of the task that is running on the EventHandler

Remarks

There is no cancellation token because the deletion task should not be interrupted if the player leaves the page!

See Also