Exemplo n.º 1
0
        private void ProcessRemoteCmd(string[] vargs)
        {
            if (mRequestManager.State != ConnectionState.OK)
            {
                Console_Println("Cannot send command, client not connected. Try /reconnect");

                return;
            }

            mRequestManager.DispatchRequest(vargs, this);
        }
Exemplo n.º 2
0
        public JsonValue DoTask(RequestManager manager, string [] args)
        {
            manager.DispatchRequest(args, this);

            mWaitHandler.WaitOne();

            if (mErrorMessage != null)
            {
                throw new Exception(mErrorMessage);
            }

            return(mResponse);
        }