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

Renders a JSON result from a widget.
Inheritance: IWidgetResult
Afficher le fichier Open project: Antaris/AspNetCore.Mvc.Widgets

Méthodes publiques

Méthode Description
Execute ( WidgetContext context ) : void
ExecuteAsync ( WidgetContext context ) : System.Threading.Tasks.Task
JsonWidgetResult ( object value, JsonSerializerSettings serializerSettings = null ) : System.Threading.Tasks

Initialises a new instance of JsonWidgetResult.

Method Details

Execute() public méthode

public Execute ( WidgetContext context ) : void
context Antaris.AspNetCore.Mvc.Widgets.Infrastructure.WidgetContext
Résultat void

ExecuteAsync() public méthode

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

JsonWidgetResult() public méthode

Initialises a new instance of JsonWidgetResult.
public JsonWidgetResult ( object value, JsonSerializerSettings serializerSettings = null ) : System.Threading.Tasks
value object The value to serialize as JSON.
serializerSettings Newtonsoft.Json.JsonSerializerSettings [Optional] The serializer settings.
Résultat System.Threading.Tasks