IAzureCosmosDbGetDevicesAssociatedWithAccount Method

Retrieves all devices that are AccountId for account

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task<List<DeviceDto>> GetDevicesAssociatedWithAccount(
	AccountDto account,
	CancellationToken cancellationToken = default
)

Parameters

account  AccountDto
Account to get the devices for.
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

TaskListDeviceDto
Task that will retrieve devices (if any) from the Cosmos DB

Exceptions

ArgumentNullExceptionThrown if account is .

See Also