IAzureCosmosDbMoveIpStatusToBlackList Method

Moves a company-based item to the global IP blacklist. Can only be performed by MobileTrack support users.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
Task MoveIpStatusToBlackList(
	IpAddressStatusDto status,
	UserSessionData currentUser,
	CancellationToken cancellationToken = default
)

Parameters

status  IpAddressStatusDto
IP Status to move to the global IP Status list
currentUser  UserSessionData
User trying to get the data
cancellationToken  CancellationToken  (Optional)
Cancellation Token

Return Value

Task
Task completion

Exceptions

UnauthorizedAccessExceptionThrown if the user currentUser did not have the correct permissions
InvalidOperationExceptionInvoked if we're trying to update an item already on the blacklist.

See Also