CloudEventsServiceInvokeOnDeviceRebuild Method

(Soft-)deletes the updated device to disc, re-adds it under a new ID, and then invokes the Event Grid Topic that the Action Handler can start its process.

Definition

Namespace: MobileTrack.Web.Components.Services
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task<Guid> InvokeOnDeviceRebuild(
	DeviceDto device,
	UserSessionData rebuildBy,
	IStringLocalizer loc
)

Parameters

device  DeviceDto
Device to rebuild
rebuildBy  UserSessionData
User rebuilding this device.
loc  IStringLocalizer
Localization service

Return Value

TaskGuid
The identifier for the event grid action that the user in the front-end can follow up on.

Remarks

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

Exceptions

NullReferenceExceptionThrown if device or rebuildBy are not filled in.

See Also