/// <summary> /// Get the layout from the provided error policy function. /// </summary> /// <param name="request"></param> /// <returns></returns> protected override IPrimitive PerformLayout(LayoutRequest request) { return(_errorPolicy((TBuildHostInstance)BuildHostInstance, _exception).Layout(_layoutContext)); }
/// <summary> /// /// </summary> public override void Start() { var request = new LayoutRequest(LayoutContext.Create(BuildOwner.ModelBag, BuildHostInstance.HostEnvironment.LayoutResolver), BuildOwner.StartMutationId); this.Execute(request, Settings.Mode != LayoutMode.Async); }