AzureCosmosDbDeletePersonalMfa Method

User should be able to delete their own MfaConnectionDto from the database.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task DeletePersonalMfa(
	MfaConnectionDto mfaConnection,
	UserSessionData deletedBy,
	CancellationToken cancellationToken = default
)

Parameters

mfaConnection  MfaConnectionDto
Mfa connection to delete
deletedBy  UserSessionData
User deleting the items
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Task completion

Implements

IAzureCosmosDbDeletePersonalMfa(MfaConnectionDto, UserSessionData, CancellationToken)

Exceptions

UnauthorizedAccessExceptionThrown if the user deletedBy did not have the correct permissions
ArgumentNullExceptionThrown if mfaConnection or deletedBy was

See Also