IAzureCosmosDbCreateNotification Method

Creates a NotificationDto in the database

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
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