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

Implements

IAzureCosmosDbCreateMapMarker(MapMarkerDto, UserSessionData, CancellationToken)

Exceptions

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

See Also