internal string GetDiff(string accountName, string slug, string spec, DiffParameters parameters)
        {
            var overrideUrl = GetRepositoryUrl(accountName, slug, "diff/" + spec);

            return(_sharpBucketV2.Get(overrideUrl, parameters.ToDictionary()));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the diff for the current repository.
 /// </summary>
 /// <param name="spec">The diff spec (e.g., de3f2..78ab1).</param>
 /// <param name="parameters">Parameters for the diff.</param>
 /// <param name="token">The cancellation token</param>
 /// <returns></returns>
 public Task <string> GetDiffAsync(string spec, DiffParameters parameters, CancellationToken token = default)
 {
     return(_sharpBucketV2.GetAsync(_baseUrl + $"diff/{spec}", parameters.ToDictionary(), token));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets the diff for the current repository.
 /// </summary>
 /// <param name="spec">The diff spec (e.g., de3f2..78ab1).</param>
 /// <param name="parameters">Parameters for the diff.</param>
 /// <returns></returns>
 public string GetDiff(string spec, DiffParameters parameters)
 {
     return(_repositoriesEndPoint.GetDiff(_accountName, _slug, spec, parameters));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets the diff for the current repository.
 /// </summary>
 /// <param name="spec">The diff spec (e.g., de3f2..78ab1).</param>
 /// <param name="parameters">Parameters for the diff.</param>
 /// <returns></returns>
 public string GetDiff(string spec, DiffParameters parameters)
 {
     return(_sharpBucketV2.Get(_baseUrl + $"diff/{spec}", parameters.ToDictionary()));
 }