Class QueryMethodExtensions

Namespace
Cratis.Arc.Queries
Assembly
Cratis.Arc.dll

Extension methods for methods representing commands.

public static class QueryMethodExtensions
Inheritance
QueryMethodExtensions
Inherited Members

Methods

IsAnonymousAllowed(MethodInfo)

Check if a method allows anonymous access.

public static bool IsAnonymousAllowed(this MethodInfo methodInfo)

Parameters

methodInfo MethodInfo

The MethodInfo to check.

Returns

bool

True if the method has [AllowAnonymous], false otherwise.

IsQuery(MethodInfo)

Check if a method is a command.

public static bool IsQuery(this MethodInfo methodInfo)

Parameters

methodInfo MethodInfo

The MethodInfo to check.

Returns

bool

True if it is a command, false if not.