/// <summary> /// Performs a PUT REST request using the provided request URI. /// </summary> /// <param name="requestUri">The request URI to use</param> /// <returns>A type-casted object of the contents of the response</returns> public async Task <T> PutAsync <T>(string requestUri) { this.LogRequest(requestUri); return(await this.PutAsync <T>(requestUri, AdvancedHttpClient.CreateContentFromString(string.Empty))); }
/// <summary> /// Creates an HttpContent object from the specified object. /// </summary> /// <param name="obj">The object to serialize</param> /// <returns>The HttpContent containing the serialized object</returns> public static HttpContent CreateContentFromObject(object obj) { return(AdvancedHttpClient.CreateContentFromString(JsonConvert.SerializeObject(obj))); }