IAzureCosmosDbCreateNotification Method

Creates a NotificationDto in the database

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
Task CreateNotification(
	NotificationDto notification,
	CancellationToken cancellationToken = default
)

Parameters

notification  NotificationDto
Notification to create
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

Task
Task completion

Exceptions

ArgumentNullExceptionThrown if notification was
ResourceInvalidStateExceptionThrown if notification is in an invalid state.

See Also