IAzureCosmosDbGetDeviceById Method

Retrieves a DeviceDto by its ID.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
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