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

method MethodInfo

The 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

type Type

The type to check.

Returns

bool?

True if anonymous access is allowed, false otherwise, or null if this evaluator cannot determine.