IAzureCosmosDbGetDeviceById Method

Retrieves a DeviceDto by its ID.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task<DeviceDto?> GetDeviceById(
	CompanyDto company,
	Guid deviceId,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
Company the Device belongs to
deviceId  Guid
Lookup Id
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

TaskDeviceDto
Device (if found)

See Also