CosmosExtensionsDetermineLocationT Method

Determine the location where an object is placed, based on itself, its ancestor environments, and otherwise the center of the Netherlands.

Definition

Namespace: MobileTrack.DataContainers.Extensions
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static Task<GeoLocationWithHeading> DetermineLocation<T>(
	this IAzureCosmosDb cosmosDb,
	CompanyDto company,
	T item,
	CancellationToken cancellationToken
)
where T : IHasEnvironment, IHasLocation

Parameters

cosmosDb  IAzureCosmosDb
Cosmos DB
company  CompanyDto
Company the item belongs to
item  T
Item to determine the location of.
cancellationToken  CancellationToken
Cancellation token

Type Parameters

T
Item that is bound to an environment and (maybe) contains a location

Return Value

TaskGeoLocationWithHeading
Location to place on the map.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAzureCosmosDb. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also