public string ProcessRequest(string request)
        {
            IServiceTask task = mManager.getTaskByName(RESOLVER_NAME);

            // check params
            string param = ServiceHelpers.ExtractRequestParams(request);

            // check action (start/stop/pause)
            string action = ServiceHelpers.ExtractRequestParams(request);

            // check
            if (null == task)
            {
                task = mManager.AddTask(RESOLVER_NAME, param);
            }
            else
            {
                task.SetParams(param);
            }

            string response = "<task name='" + RESOLVER_NAME + "'>" + task.GetResult() + "</task>";

            //mManager.RemoveTask ();
            return(response);
        }
Beispiel #2
0
        public string ProcessRequest(string request)
        {
            IServiceTask task = mManager.getTaskByName(RESOLVER_NAME);

            if (null == task)
            {
                task = mManager.AddTask(RESOLVER_NAME, ServiceHelpers.ExtractRequestParams(request));
            }

            string response = "<task name='" + RESOLVER_NAME + "'>" + task.GetResult() + "</task>";

            //mManager.RemoveTask ();
            return(response);
        }