AzureCosmosDbGetDeviceById Method

Retrieves a DeviceDto by its ID.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public 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)

Implements

IAzureCosmosDbGetDeviceById(CompanyDto, Guid, CancellationToken)

See Also