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+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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