IAzureCosmosDbGetAccountById(CompanyDto, Guid, CancellationToken) Method

Retrieves an AccountDto by its accountId. The company is used to verify that the AccountDto belongs to the CompanyDto. It also directs Azure to the correct container partition.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<AccountDto?> GetAccountById(
	CompanyDto company,
	Guid accountId,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
CompanyDto owning it
accountId  Guid
ID of the AccountDto
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

TaskAccountDto
Found AccountDto, or if not found.

See Also