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

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

            routes.Add(route);
        }