IAzureCosmosDbDeleteTemplate Method

Deletes TemplateDto from the database.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task DeleteTemplate(
	TemplateDto templateItem,
	UserSessionData deletedBy,
	CancellationToken cancellationToken = default
)

Parameters

templateItem  TemplateDto
TemplateDto to delete
deletedBy  UserSessionData
User deleting the items
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Task completion

Exceptions

InvalidOperationExceptionThrown if the user deletedBy is not MobileTrack support
ArgumentNullExceptionThrown if templateItem or deletedBy was

See Also