IAzureCosmosDbGetEnvironmentById Method

Retrieves an EnvironmentDto by its environmentId. The company is used to verify that the EnvironmentDto belongs to the CompanyDto. It also directs Azure to the correct container partition.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<EnvironmentDto?> GetEnvironmentById(
	CompanyDto company,
	Guid environmentId,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
CompanyDto owning it
environmentId  Guid
ID of the EnvironmentDto
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

TaskEnvironmentDto
Found environment, or if not found.

See Also