IAzureCosmosDbCreateMapMarker Method

Creates a Map Marker in the database. Can only be invoked by device receivers, not users!

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<MapMarkerDto> CreateMapMarker(
	MapMarkerDto mapMarker,
	UserSessionData createdBy,
	CancellationToken cancellationToken = default
)

Parameters

mapMarker  MapMarkerDto
Map marker to create
createdBy  UserSessionData
User creating the map marker
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

TaskMapMarkerDto
Cosmos DB Object-creation Task

Exceptions

ArgumentNullExceptionThrown if mapMarker or createdBy was
ResourceInvalidStateExceptionThrown if mapMarker is in an invalid state.

See Also