Class AnonymousEvaluator
- Namespace
- Cratis.Arc.Authorization
- Assembly
- Cratis.Arc.Core.dll
Represents an implementation of IAnonymousEvaluator that checks for the Cratis Arc AllowAnonymousAttribute.
public class AnonymousEvaluator : IAnonymousEvaluator
- Inheritance
-
AnonymousEvaluator
- Implements
- Inherited Members
- Extension Methods
Constructors
AnonymousEvaluator()
public AnonymousEvaluator()
Methods
IsAnonymousAllowed(MethodInfo)
Checks if anonymous access is allowed for the specified method.
public bool? IsAnonymousAllowed(MethodInfo method)
Parameters
methodMethodInfoThe method to check.
Returns
- bool?
True if anonymous access is allowed, false otherwise, or null if this evaluator cannot determine.
IsAnonymousAllowed(Type)
Checks if anonymous access is allowed for the specified type.
public bool? IsAnonymousAllowed(Type type)
Parameters
typeTypeThe type to check.
Returns
- bool?
True if anonymous access is allowed, false otherwise, or null if this evaluator cannot determine.