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

Returns the Uri for the participation for the given repository
public static StatsParticipation ( long repositoryId ) : Uri
repositoryId long The Id of the repository
Результат Uri
Пример #1
0
        /// <summary>
        /// Returns the total commit counts for the owner and total commit counts in total.
        /// </summary>
        /// <param name="repositoryId">The Id of the repository</param>
        /// <param name="cancellationToken">A token used to cancel this potentially long running request</param>
        public async Task <Participation> GetParticipation(long repositoryId, CancellationToken cancellationToken)
        {
            var result = await ApiConnection.GetQueuedOperation <Participation>(
                ApiUrls.StatsParticipation(repositoryId), cancellationToken).ConfigureAwait(false);

            return(result.FirstOrDefault());
        }
        public async Task <Participation> GetParticipation(string owner, string name, CancellationToken cancellationToken)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
            Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));

            var result = await ApiConnection.GetQueuedOperation <Participation>(ApiUrls.StatsParticipation(owner, name), cancellationToken).ConfigureAwait(false);

            return(result.FirstOrDefault());
        }