public static void RegisterRoutes(string route)
 {
     var routes = RouteTable.Routes;
     var handler = new ScsHandler("", "", "");
     using (routes.GetWriteLock())
     {
         var filenameRoute = new Route(route + "/{filename}", handler)
         {
             Defaults = new RouteValueDictionary(new { controller = "SCSHandler", action = "ProcessRequest" }),
             Constraints = new RouteValueDictionary(new { controller = "SCSHandler", action = "ProcessRequest" })
         };
         routes.Add("SCSHandlerFilenameRoute", filenameRoute);
     }
 }
Ejemplo n.º 2
0
 public void Process(PipelineArgs args)
 {
     ScsHandler.RegisterSideKick(this);
 }