Esempio n. 1
0
 static void InstallRoute(RouteCollection routes)
 {
     var route = new CassetteRoute(
         "_cassette/jasmine/{*specbundle}",
         new DelegateRouteHandler(context => new PageHandler(context))
     );
     routes.Insert(0, route);
 }
Esempio n. 2
0
        static void InstallRoute(RouteCollection routes)
        {
            var route = new CassetteRoute(
                "_cassette/jasmine/{*specbundle}",
                new DelegateRouteHandler(context => new PageHandler(context))
                );

            routes.Insert(0, route);
        }
Esempio n. 3
0
        public void MapRoute(string url, Func <RequestContext, IHttpHandler> createHandler)
        {
            var route = new CassetteRoute(url, new DelegateRouteHandler(createHandler));

            routes.Add(route);
        }