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); } }
public void Process(PipelineArgs args) { ScsHandler.RegisterSideKick(this); }