Blobs() public static method

Returns the Uri for a specific blob.
public static Blobs ( long repositoryId ) : Uri
repositoryId long The Id of the repository
return System.Uri
Beispiel #1
0
        /// <summary>
        /// Creates a new Blob
        /// </summary>
        /// <remarks>
        /// http://developer.github.com/v3/git/blobs/#create-a-blob
        /// </remarks>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="name">The name of the repository</param>
        /// <param name="newBlob">The new Blob</param>
        public Task <BlobReference> Create(string owner, string name, NewBlob newBlob)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
            Ensure.ArgumentNotNullOrEmptyString(name, "name");
            Ensure.ArgumentNotNull(newBlob, "newBlob");

            return(ApiConnection.Post <BlobReference>(ApiUrls.Blobs(owner, name), newBlob));
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new Blob
        /// </summary>
        /// <remarks>
        /// http://developer.github.com/v3/git/blobs/#create-a-blob
        /// </remarks>
        /// <param name="repositoryId">The Id of the repository</param>
        /// <param name="newBlob">The new Blob</param>
        public Task <BlobReference> Create(int repositoryId, NewBlob newBlob)
        {
            Ensure.ArgumentNotNull(newBlob, "newBlob");

            return(ApiConnection.Post <BlobReference>(ApiUrls.Blobs(repositoryId), newBlob));
        }