C# 클래스 Antaris.AspNetCore.Mvc.Widgets.Infrastructure.DefaultWidgetInvoker

Provides a default implementation of a widget invoker.
상속: IWidgetInvoker
파일 보기 프로젝트 열기: Antaris/AspNetCore.Mvc.Widgets

공개 메소드들

메소드 설명
DefaultWidgetInvoker ( ITypeActivatorCache typeActivatorCache, IWidgetActivator widgetActivator, IWidgetArgumentBinder argumentBinder ) : System

Initialises a new instance of DefaultWidgetInvoker.

Invoke ( WidgetContext context ) : void
InvokeAsync ( WidgetContext context ) : System.Threading.Tasks.Task

비공개 메소드들

메소드 설명
CoerceToWidgetResult ( object value ) : IWidgetResult

Coerces the output result of a widget to a IWidgetResult given that a method could return anything.

CreateWidget ( WidgetContext context ) : object

Creates a widget instance.

GetArgumentsAsync ( WidgetContext context, MethodInfo method, RouteValueDictionary values ) : Task

Gets the arguments for the target method.

The argument binder will provide a mixed-result of values from the provided dictionary, and those from model binding.

InvokeAsyncCore ( MethodInfo method, WidgetContext context ) : Task

Invokes an asynchronous method.

InvokeSyncCore ( MethodInfo method, WidgetContext context ) : IWidgetResult

Invokes a synchronous method.

메소드 상세

DefaultWidgetInvoker() 공개 메소드

Initialises a new instance of DefaultWidgetInvoker.
public DefaultWidgetInvoker ( ITypeActivatorCache typeActivatorCache, IWidgetActivator widgetActivator, IWidgetArgumentBinder argumentBinder ) : System
typeActivatorCache ITypeActivatorCache The type activator cache.
widgetActivator IWidgetActivator The widget activator.
argumentBinder IWidgetArgumentBinder The widget argument binder.
리턴 System

Invoke() 공개 메소드

public Invoke ( WidgetContext context ) : void
context WidgetContext
리턴 void

InvokeAsync() 공개 메소드

public InvokeAsync ( WidgetContext context ) : System.Threading.Tasks.Task
context WidgetContext
리턴 System.Threading.Tasks.Task