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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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