C# Class Antaris.AspNetCore.Mvc.Widgets.ContentWidgetResult

Renders content directly from a widget.
Inheritance: IWidgetResult
ファイルを表示 Open project: Antaris/AspNetCore.Mvc.Widgets

Public Methods

Method Description
ContentWidgetResult ( Microsoft.AspNet.Mvc.Rendering.HtmlString encodedContent ) : System

Initialises a new instance of ContentWidgetResult.

ContentWidgetResult ( string content ) : System

Initialises a new instance of ContentWidgetResult.

Execute ( WidgetContext context ) : void
ExecuteAsync ( WidgetContext context ) : System.Threading.Tasks.Task

Method Details

ContentWidgetResult() public method

Initialises a new instance of ContentWidgetResult.
public ContentWidgetResult ( Microsoft.AspNet.Mvc.Rendering.HtmlString encodedContent ) : System
encodedContent Microsoft.AspNet.Mvc.Rendering.HtmlString
return System

ContentWidgetResult() public method

Initialises a new instance of ContentWidgetResult.
public ContentWidgetResult ( string content ) : System
content string The raw content.
return System

Execute() public method

public Execute ( WidgetContext context ) : void
context Antaris.AspNetCore.Mvc.Widgets.Infrastructure.WidgetContext
return void

ExecuteAsync() public method

public ExecuteAsync ( WidgetContext context ) : System.Threading.Tasks.Task
context Antaris.AspNetCore.Mvc.Widgets.Infrastructure.WidgetContext
return System.Threading.Tasks.Task