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

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Contextualize ( Microsoft.AspNet.Mvc.Rendering.ViewContext viewContext ) : void
viewContext Microsoft.AspNet.Mvc.Rendering.ViewContext
Résultat void

DefaultWidgetHelper() public méthode

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.
Résultat System

Invoke() public méthode

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

Invoke() public méthode

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

InvokeAsync() public méthode

public InvokeAsync ( Type widgetType, object values = null ) : Task
widgetType System.Type
values object
Résultat Task

InvokeAsync() public méthode

public InvokeAsync ( string name, object values = null ) : Task
name string
values object
Résultat Task

RenderInvoke() public méthode

public RenderInvoke ( Type widgetType, object values = null ) : void
widgetType System.Type
values object
Résultat void

RenderInvoke() public méthode

public RenderInvoke ( string name, object values = null ) : void
name string
values object
Résultat void

RenderInvokeAsync() public méthode

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

RenderInvokeAsync() public méthode

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