/// <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()); }