Esempio n. 1
0
        /// <summary>
        /// Sends a http put to the specified address
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public static void PutDataOnly <T>(string addr, T data, Dictionary <string, string> queryString, int timeout = 1000)
        {
            HttpWebResponse webResponse = WebAccess.PutData(addr, Serialization.ToJsonString <T>(data), queryString, timeout);

            if (webResponse != null)
            {
                webResponse.Close();
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Sends a http put to the specified address
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public static HttpWebResponse PutData <T>(string addr, T data, Dictionary <string, string> queryString, int timeout = 1000)
 {
     return(WebAccess.PutData(addr, Serialization.ToJsonString <T>(data), queryString, timeout));
 }