Exemplo n.º 1
0
        public static RequestDispatcherProvider GetInstance()
        {
            if (Instance == null)
            {
                Instance = new RequestDispatcherProvider();
            }

            return(Instance);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Get list of controllers
 /// </summary>
 /// <returns></returns>
 public string[] GetHandlersList()
 {
     return(RequestDispatcherProvider.GetInstance()
            .GetMainRequestDispatcher()
            .GetHandlersList());
 }
Exemplo n.º 3
0
 /// <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));
 }