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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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