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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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
)