Ejemplo n.º 1
0
        protected override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            if (filterContext.IsChildAction)
            {
                return;
            }

            using (RavenSession)
            {
                if (filterContext.Exception != null)
                {
                    return;
                }

                if (RavenSession != null)
                {
                    RavenSession.SaveChanges();
                }
            }

            TaskExecutor.StartExecuting();
        }