IssueLock() публичный статический Метод

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
Результат System.Uri
Пример #1
0
        /// <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));
        }
Пример #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)));
        }
Пример #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()));
        }
Пример #4
0
 /// <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));
 }
Пример #5
0
 public Task Unlock(long repositoryId, int number)
 {
     return(ApiConnection.Delete(ApiUrls.IssueLock(repositoryId, number)));
 }
Пример #6
0
 public Task Lock(long repositoryId, int number)
 {
     return(ApiConnection.Put <Issue>(ApiUrls.IssueLock(repositoryId, number), new object()));
 }
Пример #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));
 }