IAzureCosmosDbCreateNotification Method

Creates a NotificationDto in the database

Definition

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