CloudEventsServiceInvokeOnEnvironmentDeleted Method

(Soft-)deletes the updated environment to disc, 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.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public Task<Guid> InvokeOnEnvironmentDeleted(
	EnvironmentDto deletedEnvironment,
	UserSessionData deletedBy
)

Parameters

deletedEnvironment  EnvironmentDto
Deleted environment
deletedBy  UserSessionData
User deleting this environment.

Return Value

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

Remarks

This event is only invoked when an environment is soft-deleted (if ItemsCanBeImmediatelyDeleted is ), or permanently deleted if ItemsCanBeImmediatelyDeleted is .

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

Exceptions

NullReferenceExceptionThrown if deletedEnvironment or deletedBy are not filled in.

See Also