Exemple #1
0
 public static void RegisterHandler(string handlerUrl)
 {
     if (handlerUrl.StartsWith("~"))
     {
         handlerUrl = VirtualPathUtility.ToAbsolute(handlerUrl);
     }
     VirtualPathProvider.RegisterVirtualFile(handlerUrl,
                                             () => new HandlerVirtualFile(handlerUrl));
 }
Exemple #2
0
        public static void RegisterService(string serviceUrl)
        {
            if (serviceUrl.StartsWith("~"))
            {
                serviceUrl = VirtualPathUtility.ToAbsolute(serviceUrl);
            }

            VirtualPathProvider.RegisterVirtualFile(serviceUrl, () => new ServiceVirtualFile(serviceUrl));
        }