示例#1
0
        protected internal void Application_BeginRequest(object sender, EventArgs e)
        {
            // Get objects.
            HttpContext context = base.Context;
            var         q       = context.Request;

            var statistcs = new Statistic
            {
                Date = DateTime.Now,
                Url  = context.Request.Path
            };

            using (var manager = new StatisticManager())
            {
                manager.Save(statistcs);
            }
        }