IAzureCosmosDbUpdateAccountFromAuth Method

Updates an original value in the database if the update came from the user itself during authentication. (e.g. setting their MFA connection)

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task UpdateAccountFromAuth(
	AccountDto newValue,
	AccountDto original,
	string ipAddress,
	CancellationToken cancellationToken = default
)

Parameters

newValue  AccountDto
New value with edits.
original  AccountDto
Original value.
ipAddress  String
IP Address of the newValue
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

Task
Task completion

Exceptions

ArgumentNullExceptionThrown if newValue or original was
ArgumentExceptionThrown if ipAddress is IsNullOrWhiteSpace(String)

See Also