Class ReflectedAsyncControllerDescriptor
Encapsulates information that describes an asynchronous controller, such as its name, type, and actions.
public class ReflectedAsyncControllerDescriptor : ControllerDescriptor, ICustomAttributeProvider
- Inheritance
-
ReflectedAsyncControllerDescriptor
- Implements
- Inherited Members
Constructors
ReflectedAsyncControllerDescriptor(Type)
Initializes a new instance of the ReflectedAsyncControllerDescriptor class.
public ReflectedAsyncControllerDescriptor(Type controllerType)
Parameters
controllerType
TypeThe type of the controller.
Properties
ControllerType
Gets the type of the controller.
public override sealed Type ControllerType { get; }
Property Value
- Type
The type of the controller.
Methods
FindAction(ControllerContext, string)
Finds an action method by using the specified name and controller context.
public override ActionDescriptor FindAction(ControllerContext controllerContext, string actionName)
Parameters
controllerContext
ControllerContextThe controller context.
actionName
stringThe name of the action.
Returns
- ActionDescriptor
The information about the action method.
GetCanonicalActions()
Returns a list of action method descriptors in the controller.
public override ActionDescriptor[] GetCanonicalActions()
Returns
- ActionDescriptor[]
A list of action method descriptors in the controller.
GetCustomAttributes(bool)
Returns custom attributes that are defined for this member, excluding named attributes.
public override object[] GetCustomAttributes(bool inherit)
Parameters
inherit
booltrue to look up the hierarchy chain for the inherited custom attribute; otherwise, false.
Returns
- object[]
An array of custom attributes, or an empty array if no custom attributes exist.
GetCustomAttributes(Type, bool)
Returns custom attributes of a specified type that are defined for this member, excluding named attributes.
public override object[] GetCustomAttributes(Type attributeType, bool inherit)
Parameters
attributeType
TypeThe type of the custom attributes.
inherit
booltrue to look up the hierarchy chain for the inherited custom attribute; otherwise, false.
Returns
- object[]
An array of custom attributes, or an empty array if no custom attributes exist.
GetFilterAttributes(bool)
Gets the filter attributes.
public override IEnumerable<FilterAttribute> GetFilterAttributes(bool useCache)
Parameters
useCache
booltrue to use the cache, otherwise false.
Returns
- IEnumerable<FilterAttribute>
The filter attributes.
IsDefined(Type, bool)
Returns a value that indicates whether one or more instances of the specified custom attribute are defined for this member.
public override bool IsDefined(Type attributeType, bool inherit)
Parameters
attributeType
TypeThe type of the custom attribute.
inherit
booltrue to look up the hierarchy chain for the inherited custom attribute; otherwise, false.
Returns
- bool
true if an attribute of the type represented by
attributeType
is defined for this member; otherwise, false.