C# Class Antaris.AspNetCore.Mvc.Widgets.Internal.WidgetMethodSelector

Provides services for matching widget methods for execution.
显示文件 Open project: Antaris/AspNetCore.Mvc.Widgets

Public Methods

Method Description
FindAsyncMethod ( WidgetContext context, TypeInfo widgetType ) : MethodInfo

Finds an asynchronous method to execute.

FindSyncMethod ( WidgetContext context, TypeInfo widgetType ) : MethodInfo

Finds a synchronous method to execute.

Private Methods

Method Description
GetMethod ( string name, TypeInfo widgetType ) : MethodInfo

Gets the method for the given name.

ResolveHttpMethod ( WidgetContext context ) : string

Resolves the HTTP method used to discover which action to execute.

Method Details

FindAsyncMethod() public static method

Finds an asynchronous method to execute.
public static FindAsyncMethod ( WidgetContext context, TypeInfo widgetType ) : MethodInfo
context Antaris.AspNetCore.Mvc.Widgets.Infrastructure.WidgetContext The widget context.
widgetType System.Reflection.TypeInfo The widget type.
return System.Reflection.MethodInfo

FindSyncMethod() public static method

Finds a synchronous method to execute.
public static FindSyncMethod ( WidgetContext context, TypeInfo widgetType ) : MethodInfo
context Antaris.AspNetCore.Mvc.Widgets.Infrastructure.WidgetContext The widget context.
widgetType System.Reflection.TypeInfo The widget type.
return System.Reflection.MethodInfo