Ejemplo n.º 1
0
        public VisitAction RunVisit(ArmTravsersingVisitor visitor)
        {
            VisitAction result = Visit(visitor);

            visitor.PostVisit(this);
            return(result);
        }
Ejemplo n.º 2
0
 public static void AddAction(string message, string type)
 {
     HttpContext context = HttpContext.Current;
     Visit visit = context.Session["visit"] as Visit;
     if (visit != null)
     {
         VisitAction action = new VisitAction();
         action.Url = new Uri(HttpUtility.UrlEncode(message), UriKind.Relative);
         action.Type = type;
         visit.Action.Add(action);
     }
 }
Ejemplo n.º 3
0
    public static void AddAction(string message, string type)
    {
        HttpContext context = HttpContext.Current;
        Visit       visit   = context.Session["visit"] as Visit;

        if (visit != null)
        {
            VisitAction action = new VisitAction();
            action.Url  = new Uri(HttpUtility.UrlEncode(message), UriKind.Relative);
            action.Type = type;
            visit.Action.Add(action);
        }
    }
Ejemplo n.º 4
0
    /// <summary>
    /// Handles the PostRequestHandlerExecute event of the context control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
    void context_PostRequestHandlerExecute(object sender, EventArgs e)
    {
        HttpContext context = ((HttpApplication)sender).Context;

        if (context.CurrentHandler is Page)
        {
            Visit visit = context.Session["visit"] as Visit;
            if (visit != null)
            {
                VisitAction action = new VisitAction();
                action.Url = context.Request.Url;
                action.Type = "pageview";
                visit.Action.Add(action);
            }
        }
    }
Ejemplo n.º 5
0
    /// <summary>
    /// Handles the PostRequestHandlerExecute event of the context control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
    void context_PostRequestHandlerExecute(object sender, EventArgs e)
    {
        HttpContext context = ((HttpApplication)sender).Context;

        if (context.CurrentHandler is Page)
        {
            Visit visit = context.Session["visit"] as Visit;
            if (visit != null)
            {
                VisitAction action = new VisitAction();
                action.Url  = context.Request.Url;
                action.Type = "pageview";
                visit.Action.Add(action);
            }
        }
    }