IAzureCosmosDbUpdateOrCreateAlertType Method

Creates or update an Alert type in the database

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task UpdateOrCreateAlertType(
	AlertTypeDto alertType,
	UserSessionData createdBy,
	CancellationToken cancellationToken = default
)

Parameters

alertType  AlertTypeDto
Alert type to update/create
createdBy  UserSessionData
User creating the environment
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Cosmos DB Object-creation Task

Exceptions

UnauthorizedAccessExceptionThrown if the user createdBy did not have the correct permissions
ArgumentNullExceptionThrown if alertType or createdBy are
ResourceInvalidStateExceptionThrown if alertType is in an invalid state.

See Also