1
0
Форкнуть 0
- [x] Make `Git.Utilities.EnumerateParentProcesses` static.
  - [x] Supress "DefaultParametersShouldNotBeUsed" warnings on `TargetUri`.
This commit is contained in:
J Wyman ∞ 2018-06-27 11:02:46 -04:00
Родитель daebd429b3
Коммит 7119df3ff1
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -92,7 +92,7 @@ namespace Microsoft.Alm.Authentication.Git
return false;
}
internal IEnumerable<Win32.ProcessEntry32> EnumerateParentProcesses()
internal static IEnumerable<Win32.ProcessEntry32> EnumerateParentProcesses()
{
var processTable = new Dictionary<uint, uint>();
var processEntries = new Dictionary<uint, Win32.ProcessEntry32>();

Просмотреть файл

@ -230,6 +230,7 @@ namespace Microsoft.Alm.Authentication
/// The new URL used for all queries if not `<see langword="null"/>`; otherwise is unchanged from `<seealso cref="ActualUri"/>`.
/// </param>
/// <exception cref="ArgumentException">When all arguments are `<see langword="null"/>`.</exception>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public TargetUri CreateWith(string queryUrl = null, string proxyUrl = null, string actualUrl = null)
{
if (queryUrl is null && proxyUrl is null && actualUrl is null)
@ -255,6 +256,7 @@ namespace Microsoft.Alm.Authentication
/// The new `<seealso cref="Uri"/>` used for all queries if not `<see langword="null"/>`; otherwise is unchanged from `<seealso cref="ActualUri"/>`.
/// </param>
/// <exception cref="ArgumentException">When all arguments are `<see langword="null"/>`.</exception>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public TargetUri CreateWith(Uri queryUri = null, Uri proxyUri = null, Uri actualUri = null)
{
if (queryUri is null && proxyUri is null && actualUri is null)