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+45c8d9adb5970d727cceec44a5ed61aea0016e50
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