Пример #1
0
 /// <summary>
 /// Initialize the underlying ServiceProxySystem, including registering the
 /// necessary ServiceProxy routes in System.Web.Routing.RouteTable.Routes.
 /// </summary>
 public static void Initialize()
 {
     if (!initialized)
     {
         lock (initLock)
         {
             initialized = true;
             RegisterRoutes();
             ServiceProxyController.Init();
         }
     }
 }
Пример #2
0
        internal static ServiceProxyController Init()
        {
            if (defaultServiceProxyController == null)
            {
                lock (defaultPocLock)
                {
                    defaultServiceProxyController = new ServiceProxyController();
                }
            }

            return(defaultServiceProxyController);
        }
Пример #3
0
 /// <summary>
 /// Register the specified handler to handle the specified file extension.
 /// </summary>
 /// <param name="extension"></param>
 /// <param name="handler"></param>
 /// <param name="reset"></param>
 public static void RegisterServiceProxyRequestDelegate(string extension, ExecutionResultDelegate handler, bool reset = false)
 {
     ServiceProxyController.RegisterServiceProxyRequestDelegate(extension, handler, reset);
 }