Example #1
0
        public void AsyncUpdate(JToken element, WebServiceDataHandler callback)
        {
            Dictionary <string, string> dictionary = GetUpdateDictionary(element);
            WebServiceAsyncRequest      request    = new WebServiceAsyncRequest();

            byte[] postData = ToPostData(dictionary);
            request.OnException += OnException;
            if (null != callback)
            {
                request.OnData += callback;
            }
            request.Begin(serverURL, postData);
        }
 public void AsyncUpdate(JToken element, WebServiceDataHandler callback)
 {
     Dictionary<string, string> dictionary = GetUpdateDictionary(element);
     WebServiceAsyncRequest request = new WebServiceAsyncRequest();
     byte[] postData = ToPostData(dictionary);
     request.OnException += OnException;
     if (null != callback)
     {
         request.OnData += callback;
     }
     request.Begin(serverURL, postData);
 }