void ga_BeginRequest(object sender, EventArgs e)
        {
            HttpApplication app             = sender as HttpApplication;
            HttpContext     context         = app.Context;
            bool            generateFolders = SiteSettings.Get().GenerateFolders;
            string          path            = context.Request.Path.ToLower();

            if (EnableTrackbacks)
            {
                // Check if this is a Trackback or Pingback request
                if (generateFolders && path.Contains("/trackback.ashx"))
                {
                    TrackBackHandler trackback = new TrackBackHandler();
                    trackback.ProcessRequest(context);
                    return;
                }
                else if (generateFolders && path.Contains("/pingback.ashx"))
                {
                    IHttpHandler pingback = new PingBackHandler();
                    pingback.ProcessRequest(context);
                    return;
                }

                // Add Pingback HttpHeader if enabled
                context.Response.AddHeader("X-Pingback", PingBackHandler.PingbackServiceUrl);
            }
        }
 void ga_RenderPostBody(StringBuilder sb, PostEventArgs e)
 {
     // Embed TrackBack RDF info for this post
     if (EnableTrackbacks && e.RenderLocation == PostRenderLocation.Web && e.Post.EnableComments && e.Post.EnableNewComments)
     {
         sb.Append(TrackBackHandler.GenerateTrackbackRDF(e.Post));
     }
 }
        void ga_BeginRequest(object sender, EventArgs e)
        {
            HttpApplication app = sender as HttpApplication;
            HttpContext context = app.Context;
            bool generateFolders = SiteSettings.Get().GenerateFolders;
            string path = context.Request.Path.ToLower();

            if (EnableTrackbacks)
            {
                // Check if this is a Trackback or Pingback request
                if (generateFolders && path.Contains("/trackback.ashx"))
                {
                    TrackBackHandler trackback = new TrackBackHandler();
                    trackback.ProcessRequest(context);
                    return;
                }
                else if (generateFolders && path.Contains("/pingback.ashx"))
                {
                    IHttpHandler pingback = new PingBackHandler();
                    pingback.ProcessRequest(context);
                    return;
                }

                // Add Pingback HttpHeader if enabled
                context.Response.AddHeader("X-Pingback", PingBackHandler.PingbackServiceUrl);
            }
        }