Пример #1
0
        public void AddLifeCycleTrailItem(LifeCycleHandlerName name, LifeCycleHandlerState state, string message)
        {
            if (!this.LifeCycleTrail.ContainsKey(name))
            {
                this.LifeCycleTrail[name] = new ListStack <Tuple <LifeCycleHandlerState, string> >();
            }

            this.LifeCycleTrail[name].Add(new Tuple <LifeCycleHandlerState, string>(state, message));
        }
Пример #2
0
 /// <summary>
 /// Used internally for non error lifecycle events
 /// </summary>
 /// <param name="webContext"></param>
 /// <param name="state"></param>
 /// <param name="message"></param>
 protected void PopulateLifeCycleTrail(WebContext <T> webContext, LifeCycleHandlerState state = null, string message = null)
 {
     webContext.WebResponse.AddLifeCycleTrailItem(this.Name, state ?? LifeCycleHandlerState.Success, message ?? string.Empty);
 }