/// <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(); } } }
internal static ServiceProxyController Init() { if (defaultServiceProxyController == null) { lock (defaultPocLock) { defaultServiceProxyController = new ServiceProxyController(); } } return(defaultServiceProxyController); }
/// <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); }