public static StatsCodeFrequency ( long repositoryId ) : Uri | ||
repositoryId | long | The Id of the repository |
Результат | Uri |
/// <summary> /// Returns a weekly aggregate of the number of additions and deletions pushed to a repository. /// </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 <CodeFrequency> GetCodeFrequency(long repositoryId, CancellationToken cancellationToken) { var rawFrequencies = await ApiConnection.GetQueuedOperation <long[]>( ApiUrls.StatsCodeFrequency(repositoryId), cancellationToken).ConfigureAwait(false); return(new CodeFrequency(rawFrequencies)); }
public async Task <CodeFrequency> GetCodeFrequency(string owner, string name, CancellationToken cancellationToken) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); var rawFrequencies = await ApiConnection.GetQueuedOperation <long[]>(ApiUrls.StatsCodeFrequency(owner, name), cancellationToken).ConfigureAwait(false); return(new CodeFrequency(rawFrequencies)); }