CloudEventsServiceInvokeOnEnvironmentUpdated Method

Saves 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> InvokeOnEnvironmentUpdated(
	EnvironmentDto newValue,
	EnvironmentDto originalValue,
	UserSessionData updatedBy
)

Parameters

newValue  EnvironmentDto
New value of the environment
originalValue  EnvironmentDto
Original value of the environment
updatedBy  UserSessionData
The user that updated the environment.

Return Value

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

Exceptions

InvalidOperationExceptionIf the event could not be created; this is a serious problem.
NullReferenceExceptionThrown if newValue, originalValue or updatedBy are not filled in.
ArgumentExceptionThrown if newValue is not part of updatedBy's company.

See Also