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+45c8d9adb5970d727cceec44a5ed61aea0016e50
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