public override void OnResultExecuted(ResultExecutedContext filterContext)
        {
            base.OnResultExecuted(filterContext);
            if (filterContext.HttpContext.Request["trace"] == "off")
            {
                return;
            }
            var @event = new Models.Events.TrackerEvent()
            {
                HttpContextBase = filterContext.HttpContext ,
                ActionResult = filterContext.Result,
                ControllerName = filterContext.Controller.GetType().Name,
            };

            if (EventPublisher != null)
            {
                EventPublisher.Publish(@event);
            }
        }
Esempio n. 2
0
        protected RedirectToRouteResult RedirectToERPStoreRoute(string routeName, object routeValues)
        {
            routeName = this.HttpContext.ResolveRouteName(routeName);
            var result = RedirectToRoute(routeName, routeValues);

            if (HttpContext.Request["trace"] == "off")
            {
                return result;
            }
            var @event = new Models.Events.TrackerEvent()
            {
                HttpContextBase = HttpContext,
                ActionResult = result,
                ControllerName = this.GetType().Name,
            };

            EventPublisherService.Publish(@event);

            return result;
        }
Esempio n. 3
0
        protected override RedirectResult Redirect(string url)
        {
            var result = base.Redirect(url);

            if (HttpContext.Request["trace"] == "off")
            {
                return result;
            }
            var @event = new Models.Events.TrackerEvent()
            {
                HttpContextBase = HttpContext,
                ActionResult = result,
                ControllerName = this.GetType().Name,
            };

            EventPublisherService.Publish(@event);

            return result;
        }