CosmosExtensionsDetermineLocationT Method
Determine the location where an object is placed, based on itself, its ancestor environments,
and otherwise the center of the Netherlands.
Namespace: MobileTrack.DataContainers.ExtensionsAssembly: 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
- cosmosDb IAzureCosmosDb
- Cosmos DB
- company CompanyDto
- Company the item belongs to
- item T
- Item to determine the location of.
- cancellationToken CancellationToken
- Cancellation token
- T
- Item that is bound to an environment and (maybe) contains a location
TaskGeoLocationWithHeadingLocation to place on the map.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).