Example #1
0
 /// <inheritdoc />
 public async Task <IHttpResponseMessage> PutAsync(Uri requestUri, IHttpContent content, CancellationToken cancellationToken)
 {
     return((await _client.PutAsync(requestUri, content.ToImplementation(), cancellationToken)).ToInterface());
 }
Example #2
0
 /// <inheritdoc />
 public async Task <IHttpResponseMessage> PutAsync(string requestUri, IHttpContent content)
 {
     return((await _client.PutAsync(requestUri, content.ToImplementation())).ToInterface());
 }
Example #3
0
 /// <summary>Add HTTP content to a collection of <see cref="T:System.Net.Http.HttpContent" /> objects that get serialized to multipart/form-data MIME type.</summary>
 /// <param name="content">The HTTP content to add to the collection.</param>
 /// <param name="name">The name for the HTTP content to add.</param>
 /// <param name="fileName">The file name for the HTTP content to add to the collection.</param>
 /// <exception cref="T:System.ArgumentException">The <paramref name="name" /> was null or contains only white space characters.-or-The <paramref name="fileName" /> was null or contains only white space characters.</exception>
 /// <exception cref="T:System.ArgumentNullException">The <paramref name="content" /> was null.</exception>
 public void Add(IHttpContent content, string name, string fileName)
 {
     Implementation.Add(content.ToImplementation(), name, fileName);
 }
Example #4
0
 /// <inheritdoc />
 public void Add(IHttpContent content)
 {
     Implementation.Add(content.ToImplementation());
 }
 /// <summary>Add HTTP content to a collection of <see cref="T:System.Net.Http.HttpContent" /> objects that get serialized to multipart/form-data MIME type.</summary>
 /// <param name="content">The HTTP content to add to the collection.</param>
 /// <param name="name">The name for the HTTP content to add.</param>
 /// <exception cref="T:System.ArgumentException">The <paramref name="name" /> was null or contains only white space characters.</exception>
 /// <exception cref="T:System.ArgumentNullException">The <paramref name="content" /> was null.</exception>
 public void Add(IHttpContent content, string name)
 {
     _content.Add(content.ToImplementation(), name);
 }