Added Task Put(Uri uri)

This commit is contained in:
Haroon
2013-11-14 08:30:02 +00:00
parent 5d68dcfb55
commit 2ac500ba2c
2 changed files with 19 additions and 0 deletions
+12
View File
@@ -166,6 +166,18 @@ namespace Octokit
return response.BodyAsObject;
}
/// <summary>
/// Puts the API object at the specified URI.
/// </summary>
/// <param name="uri">URI of the API resource to put</param>
/// <returns>A <see cref="Task"/> for the request's execution.</returns>
public Task Delete(Uri uri)
{
Ensure.ArgumentNotNull(uri, "uri");
return Connection.PutAsync(uri);
}
/// <summary>
/// Creates or replaces the API resource at the specified URI.
/// </summary>
+7
View File
@@ -100,6 +100,13 @@ namespace Octokit
/// <exception cref="ApiException">Thrown when an API error occurs.</exception>
Task<T> Post<T>(Uri uri, object data, string accepts, string contentType);
/// <summary>
/// PUTS the API object at the specified URI.
/// </summary>
/// <param name="uri">URI of the API resource to delete</param>
/// <returns>A <see cref="Task"/> for the request's execution.</returns>
Task Put(Uri uri);
/// <summary>
/// Creates or replaces the API resource at the specified URI.
/// </summary>