IAzureCosmosDbGetEnvironmentByReference Method

Retrieves an EnvironmentDto by its environmentReference. 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+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task<EnvironmentDto?> GetEnvironmentByReference(
	CompanyDto company,
	IHasEnvironment environmentReference,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
CompanyDto owning it
environmentReference  IHasEnvironment
ID of the EnvironmentDto
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

TaskEnvironmentDto
Found environment, or if not found.

See Also