ItemBaseRepositoryTDelete(T, UserSessionData, Boolean, CancellationToken) Method

Delete a business object instance permanently from the cloud

Definition

Namespace: MobileTrack.DataContainers.Repositories
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
internal Task Delete(
	T model,
	UserSessionData deletedBy,
	bool forceDelete,
	CancellationToken cancellationToken
)

Parameters

model  T
The item to remove
deletedBy  UserSessionData
User AccountDto deleting the item
forceDelete  Boolean
If , then we will delete the item permanently regardless of company settings.
cancellationToken  CancellationToken
Cancellation Token, which will be inserted in the Azure Tasks

Return Value

Task
Task completion

Exceptions

InvalidOperationExceptionIf the item was not deleted

See Also