CloudEventsServiceInvokeOnAccountCreated Method

Saves the new account to disc, generates and saves a temporary password for it, 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> InvokeOnAccountCreated(
	AccountDto account,
	CompanyDto company,
	UserSessionData createdBy
)

Parameters

account  AccountDto
Newly created account
company  CompanyDto
The company the account belongs to
createdBy  UserSessionData
The user that created the new account.

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

InvalidOperationExceptionIf the event could not be created; this is a serious problem.
NullReferenceExceptionThrown if account, company or createdBy are not filled in.
ArgumentExceptionThrown if account is not part of company.

See Also