Antaris.AspNetCore.Mvc.Widgets.Infrastructure.DefaultWidgetHelper.InvokeAsync C# (CSharp) Method

InvokeAsync() public method

public InvokeAsync ( Type widgetType, object values = null ) : Task
widgetType System.Type
values object
return Task
        public async Task<HtmlString> InvokeAsync(Type widgetType, object values = null)
        {
            var descriptor = SelectWidget(widgetType);

            using (var writer = new StringWriter())
            {
                await InvokeCoreAsync(writer, descriptor, values);
                return new HtmlString(writer.ToString());
            }
        }

Same methods

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