IAzureCosmosDbCreatePassword Method

Creates a password in the database.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task<EncryptedPasswordDto> CreatePassword(
	EncryptedPasswordDto password,
	UserSessionData createdBy,
	CancellationToken cancellationToken = default
)

Parameters

password  EncryptedPasswordDto
Password to create
createdBy  UserSessionData
User creating the password
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

TaskEncryptedPasswordDto
Cosmos DB Object-creation Task

Exceptions

UnauthorizedAccessExceptionThrown if the user createdBy did not have the correct permissions
ArgumentNullExceptionThrown if password or createdBy was
ResourceInvalidStateExceptionThrown if password is in an invalid state.

See Also