public static async Task <string> Partial(this ISuperGlueView view, object partial) { var stream = await Partials.ExecutePartial(view.Environment, partial).ConfigureAwait(false); using (var streamReader = new StreamReader(stream)) { return(await streamReader.ReadToEndAsync().ConfigureAwait(false)); } }
public Task Start(AppFunc chain, IDictionary <string, object> settings, string environment, string[] arguments) { Partials.Initialize(chain); return(Task.CompletedTask); }