C# Class Antaris.AspNetCore.Mvc.Widgets.Infrastructure.DefaultWidgetHelper

Provides a default implementation of a widget helper.
Inheritance: IWidgetHelper, ICanHasViewContext
Datei anzeigen Open project: Antaris/AspNetCore.Mvc.Widgets

Public Methods

Method Description
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

Private Methods

Method Description
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.

Method Details

Contextualize() public method

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

DefaultWidgetHelper() public method

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.
return System

Invoke() public method

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

Invoke() public method

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

InvokeAsync() public method

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

InvokeAsync() public method

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

RenderInvoke() public method

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

RenderInvoke() public method

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

RenderInvokeAsync() public method

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

RenderInvokeAsync() public method

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