IssueLock() public static method

Returns the Uri for the specified issue to be locked/unlocked.
public static IssueLock ( long repositoryId, int number ) : Uri
repositoryId long The Id of the repository
number int The issue number
return System.Uri
        /// <summary>
        /// Unlocks an issue for the specified repository. Issue owners and users with push access can unlock an issue.
        /// </summary>
        /// <remarks>https://developer.github.com/v3/issues/#unlock-an-issue</remarks>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="name">The name of the repository</param>
        /// <param name="number">The issue number</param>
        public Task Unlock(string owner, string name, int number)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
            Ensure.ArgumentNotNullOrEmptyString(name, "name");

            return(ApiConnection.Delete(ApiUrls.IssueLock(owner, name, number), new object(), AcceptHeaders.IssueLockingUnlockingApiPreview));
        }
Beispiel #2
0
        public Task Unlock(string owner, string name, int number)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
            Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));

            return(ApiConnection.Delete(ApiUrls.IssueLock(owner, name, number)));
        }
Beispiel #3
0
        public Task Lock(string owner, string name, int number)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
            Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));

            return(ApiConnection.Put <Issue>(ApiUrls.IssueLock(owner, name, number), new object()));
        }
 /// <summary>
 /// Unlocks an issue for the specified repository. Issue owners and users with push access can unlock an issue.
 /// </summary>
 /// <remarks>https://developer.github.com/v3/issues/#unlock-an-issue</remarks>
 /// <param name="repositoryId">The Id of the repository</param>
 /// <param name="number">The issue number</param>
 public Task Unlock(int repositoryId, int number)
 {
     return(ApiConnection.Delete(ApiUrls.IssueLock(repositoryId, number), new object(), AcceptHeaders.IssueLockingUnlockingApiPreview));
 }
Beispiel #5
0
 public Task Unlock(long repositoryId, int number)
 {
     return(ApiConnection.Delete(ApiUrls.IssueLock(repositoryId, number)));
 }
Beispiel #6
0
 public Task Lock(long repositoryId, int number)
 {
     return(ApiConnection.Put <Issue>(ApiUrls.IssueLock(repositoryId, number), new object()));
 }
Beispiel #7
0
 /// <summary>
 /// Locks an issue for the specified repository. Issue owners and users with push access can lock an issue.
 /// </summary>
 /// <remarks>https://developer.github.com/v3/issues/#lock-an-issue</remarks>
 /// <param name="repositoryId">The Id of the repository</param>
 /// <param name="number">The issue number</param>
 public Task Lock(long repositoryId, int number)
 {
     return(ApiConnection.Put <Issue>(ApiUrls.IssueLock(repositoryId, number), new object(), null, AcceptHeaders.IssueLockingUnlockingApiPreview));
 }