public async Task <OutputModel> get_inner_json_Name(InputModel model) { return(new OutputModel { Text = await _invoker.InvokeObject(new PartialModel { Name = model.Name }).ConfigureAwait(false) }); }
public CmsView FindView <TModel>(string viewName, TModel model, ITheme theme, IEnumerable <RequestContext> contexts, bool useMaster) where TModel : class { return(new CmsView((x, y) => { if (useMaster) { var sparkViewEntry = BuildViewEntry(model); if (sparkViewEntry == null) { return; } var view = sparkViewEntry.CreateInstance(); SetModel(model, view); view.RenderView(x); return; } var result = _partialInvoker.InvokeObject(model); x.Write(result); })); }
public OutputModel get_inner_json_Name(InputModel model) { return(new OutputModel { Text = _invoker.InvokeObject(new PartialModel { Name = model.Name }) }); }
public void Invoke() { var output = _writer.Record(() => _inner.Invoke()); var subject = new T { InnerContent = output.GetText() }; _customization(subject); var html = _partials.InvokeObject(subject); _writer.WriteHtml(html); }
public string get_invokes_a_partial(NonPartialInput input) { return(_partialInvoker.InvokeObject(new PartialInput())); }