IAzureCosmosDbDeleteDevice Method

Deletes a DeviceDto from the database

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task DeleteDevice(
	DeviceDto device,
	UserSessionData deletedBy,
	bool forceDelete = false,
	CancellationToken cancellationToken = default
)

Parameters

device  DeviceDto
Device to be deleted
deletedBy  UserSessionData
User deleting the EnvironmentDto
forceDelete  Boolean  (Optional)
Whether to force deletion of the device
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

Task
Task completion

Exceptions

UnauthorizedAccessExceptionThrown if the user deletedBy did not have the correct permissions
ArgumentNullExceptionThrown if device or deletedBy was

See Also