public static RequestDispatcherProvider GetInstance() { if (Instance == null) { Instance = new RequestDispatcherProvider(); } return(Instance); }
/// <summary> /// Get list of controllers /// </summary> /// <returns></returns> public string[] GetHandlersList() { return(RequestDispatcherProvider.GetInstance() .GetMainRequestDispatcher() .GetHandlersList()); }
/// <summary> /// Invoke call /// </summary> /// <param name="controller">Controller name</param> /// <param name="action">Action name</param> /// <param name="args">Serialized JSON arguments</param> /// <returns></returns> public string Invoke(string controller, string action, string args) { return(RequestDispatcherProvider.GetInstance() .GetMainRequestDispatcher() .InvokeRequest(CurrentProcess, controller, action, args)); }