Exemplo n.º 1
0
        protected virtual void HandleRequest(HttpRequest request, HttpResponse response)
        {
            RouteMatch rm = Router.GetFirstHit(request.Url);

            CronshopContext context;

            if (rm.Route.Name == "cron")
            {
                context = new CronCronshopContext(request, response) {Scheduler = Scheduler};
            }
            else
            {
                context = new CronshopContext(request, response);
            }

            context.RouteMatch = rm;
            context.BeginResponse();
        }
Exemplo n.º 2
0
 public CronCronshopContext(HttpRequest request, HttpResponse response)
     : base(request, response)
 {
 }