ISuspensionService

Namespace: ASPSecurityKit
Assembly: ASPSecurityKit.dll

Summary

Provides an abstraction to implement a service for entity suspension.

Methods

GetSuspendedIds(idMembers)

Summary

Gets the suspended entityIds associated with the given entityId members (and their related references).

Returns

A List`1 with ISuspendedId as the generic argument, representing entityIds which are suspended.

Parameters
Name Type Description
idMembers System.Collections.Generic.List{ASPSecurityKit.Authorization.IIdMemberReference} The entityId members.
Exceptions
Type Description
System.ArgumentNullException When idMembers is null.

IsAllowed(suspendedId,permissionCode)

Summary

Determines whether the specified suspended entityId is still allowed based on exclusion rules.

Returns

true if the specified suspended entityId is still permitted; otherwise, false.

Parameters
Name Type Description
suspendedId ASPSecurityKit.ISuspendedId The suspended entityId.
permissionCode System.String The permissionCode resolved to authorize the requested operation.

GetSuspendedIdsAsync(idMembers)

Summary

Gets the suspended entityIds associated with the given entityId members (and their related references).

Returns

A List`1 with ISuspendedId as the generic argument, representing entityIds which are suspended.

Parameters
Name Type Description
idMembers System.Collections.Generic.List{ASPSecurityKit.Authorization.IIdMemberReference} The entityId members.
Exceptions
Type Description
System.ArgumentNullException When idMembers is null.

GetSuspendedIdsAsync(idMembers,cancellationToken)

Summary

Gets the suspended entityIds associated with the given entityId members (and their related references).

Returns

A List`1 with ISuspendedId as the generic argument, representing entityIds which are suspended.

Parameters
Name Type Description
idMembers System.Collections.Generic.List{ASPSecurityKit.Authorization.IIdMemberReference} The entityId members.
cancellationToken System.Threading.CancellationToken The cancellation token.
Exceptions
Type Description
System.ArgumentNullException When idMembers is null.

IsAllowedAsync(suspendedId,permissionCode)

Summary

Determines whether the specified suspended entityId is still allowed based on exclusion rules.

Returns

true if the specified suspended entityId is still permitted; otherwise, false.

Parameters
Name Type Description
suspendedId ASPSecurityKit.ISuspendedId The suspended entityId.
permissionCode System.String The permissionCode resolved to authorize the requested operation.

IsAllowedAsync(suspendedId,permissionCode,cancellationToken)

Summary

Determines whether the specified suspended entityId is still allowed based on exclusion rules.

Returns

true if the specified suspended entityId is still permitted; otherwise, false.

Parameters
Name Type Description
suspendedId ASPSecurityKit.ISuspendedId The suspended entityId.
permissionCode System.String The permissionCode resolved to authorize the requested operation.
cancellationToken System.Threading.CancellationToken The cancellation token.