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

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

공개 메소드들

메소드 설명
Contextualize ( Microsoft.AspNet.Mvc.Rendering.ViewContext viewContext ) : void
DefaultWidgetHelper ( IWidgetDescriptorCollectionProvider descriptorProvider, IWidgetInvokerFactory invokerFactory, IWidgetSelector selector ) : System

Initialises a new instance of DefaultWidgetHelper.

Invoke ( Type widgetType, object values = null ) : Microsoft.AspNet.Mvc.Rendering.HtmlString
Invoke ( string name, object values = null ) : Microsoft.AspNet.Mvc.Rendering.HtmlString
InvokeAsync ( Type widgetType, object values = null ) : Task
InvokeAsync ( string name, object values = null ) : Task
RenderInvoke ( Type widgetType, object values = null ) : void
RenderInvoke ( string name, object values = null ) : void
RenderInvokeAsync ( Type widgetType, object values = null ) : System.Threading.Tasks.Task
RenderInvokeAsync ( string name, object values = null ) : System.Threading.Tasks.Task

비공개 메소드들

메소드 설명
InvokeCore ( TextWriter writer, WidgetDescriptor descriptor, object values = null ) : void

Invokes a widget synchronously.

InvokeCoreAsync ( TextWriter writer, WidgetDescriptor descriptor, object values = null ) : System.Threading.Tasks.Task

Invokes a widget asynchronously.

SelectWidget ( Type widgetType ) : WidgetDescriptor

Selects a widget based on a type.

SelectWidget ( string name ) : WidgetDescriptor

Selects a widget based on a name.

메소드 상세

Contextualize() 공개 메소드

public Contextualize ( Microsoft.AspNet.Mvc.Rendering.ViewContext viewContext ) : void
viewContext Microsoft.AspNet.Mvc.Rendering.ViewContext
리턴 void

DefaultWidgetHelper() 공개 메소드

Initialises a new instance of DefaultWidgetHelper.
public DefaultWidgetHelper ( IWidgetDescriptorCollectionProvider descriptorProvider, IWidgetInvokerFactory invokerFactory, IWidgetSelector selector ) : System
descriptorProvider IWidgetDescriptorCollectionProvider The widget descriptor collection provider.
invokerFactory IWidgetInvokerFactory The invoker factory.
selector IWidgetSelector The selector.
리턴 System

Invoke() 공개 메소드

public Invoke ( Type widgetType, object values = null ) : Microsoft.AspNet.Mvc.Rendering.HtmlString
widgetType System.Type
values object
리턴 Microsoft.AspNet.Mvc.Rendering.HtmlString

Invoke() 공개 메소드

public Invoke ( string name, object values = null ) : Microsoft.AspNet.Mvc.Rendering.HtmlString
name string
values object
리턴 Microsoft.AspNet.Mvc.Rendering.HtmlString

InvokeAsync() 공개 메소드

public InvokeAsync ( Type widgetType, object values = null ) : Task
widgetType System.Type
values object
리턴 Task

InvokeAsync() 공개 메소드

public InvokeAsync ( string name, object values = null ) : Task
name string
values object
리턴 Task

RenderInvoke() 공개 메소드

public RenderInvoke ( Type widgetType, object values = null ) : void
widgetType System.Type
values object
리턴 void

RenderInvoke() 공개 메소드

public RenderInvoke ( string name, object values = null ) : void
name string
values object
리턴 void

RenderInvokeAsync() 공개 메소드

public RenderInvokeAsync ( Type widgetType, object values = null ) : System.Threading.Tasks.Task
widgetType System.Type
values object
리턴 System.Threading.Tasks.Task

RenderInvokeAsync() 공개 메소드

public RenderInvokeAsync ( string name, object values = null ) : System.Threading.Tasks.Task
name string
values object
리턴 System.Threading.Tasks.Task