IAzureCosmosDbGetAccountByEmailAddress Method
Tries to find an
AccountDto by its
EmailAddress.
This method is often used for login purposes and to ensure that for newly created accounts
the email address is unique.
Namespace: MobileTrack.DataContainers.CosmosAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task<AccountDto> GetAccountByEmailAddress(
IHasEmailAddress emailAddress,
bool isNewAccount = false,
CancellationToken cancellationToken = default
)
- emailAddress IHasEmailAddress
- EmailAddress to compare against
- isNewAccount Boolean (Optional)
- if a new account is being created
- cancellationToken CancellationToken (Optional)
- Cancellation token
TaskAccountDtoAccount (if found, otherwise
)