IAzureCosmosDbGetCompanyHierarchy Method

Loads all assets of an CompanyDto and puts them into a usable tree, with the Main EnvironmentDto being the root node.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task<MutableEntityTreeNode<ICompanyComponent>> GetCompanyHierarchy(
	CompanyDto company,
	EnvironmentDto? startAtEnvironment = null,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
The CompanyDto to gather data about
startAtEnvironment  EnvironmentDto  (Optional)
Which environment to scope from. If is entered, we will make the entire company hierarchy
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

TaskMutableEntityTreeNodeICompanyComponent
A tree with all the data of the company. The root node will be the main EnvironmentDto

See Also