Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
        /// <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);
        }