Table of Contents

Class AllScopedOperationsRequirement

Namespace
Arc4u.Authorization
Assembly
Arc4u.Authorization.dll

Represents an authorization requirement that is satisfied only when the current principal is granted all of the specified scoped operations (AND logic).

public class AllScopedOperationsRequirement : IAuthorizationRequirement
Inheritance
AllScopedOperationsRequirement
Implements
Inherited Members

Remarks

Each operation is an integer identifier (typically an ID) paired with a scope — a free-form string used to partition permissions (e.g. a tenant or feature area). An empty scope (Empty) is the default and matches operations granted without an explicit scope.

Constructors

AllScopedOperationsRequirement(params int[])

Initializes a new instance using the default (empty) scope for every operation.

public AllScopedOperationsRequirement(params int[] operations)

Parameters

operations int[]

One or more operation identifiers.

AllScopedOperationsRequirement(string, params int[])

Initializes a new instance where every operation is paired with the same scope.

public AllScopedOperationsRequirement(string scope, params int[] operations)

Parameters

scope string

The scope applied to every operation. Must not be null.

operations int[]

One or more operation identifiers.

Exceptions

ArgumentNullException

scope is null.

AllScopedOperationsRequirement(params (string, int)[])

Initializes a new instance with explicit (scope, operation) pairs, allowing each operation to belong to a different scope.

public AllScopedOperationsRequirement(params (string, int)[] operations)

Parameters

operations (string, int)[]

One or more (scope, operation) tuples. Each scope must be non-null; use Empty for the default scope.

Properties

Operations

Gets the (scope, operation) pairs that must all be granted to the current principal for the requirement to be satisfied.

public (string scope, int operation)[] Operations { get; }

Property Value

(string, int)[]