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.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
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