Skip to content

Commit

Permalink
[#NON] #BUGFIX 'assemblyName: DotNet.Testcontainers; function: Resour…
Browse files Browse the repository at this point in the history
…ceReaperDiagnostics'

{Disable CA1822 for temporary diagnostic implementation.}
  • Loading branch information
HofmeisterAn committed Jun 7, 2022
1 parent b01abbe commit 2aeec1e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ internal sealed class ResourceReaperDiagnostics
public int ConnectionAttempts
=> this.connectionAttempts;

#pragma warning disable CA1822

public IReadOnlyDictionary<string, IEnumerable<string>> LocalNetworkInterfaces
=> NetworkInterface.GetAllNetworkInterfaces()
.ToDictionary(networkInterface => networkInterface.Id, networkInterface => networkInterface.GetIPProperties().UnicastAddresses.Select(unicastAddress => unicastAddress.Address.ToString()));

#pragma warning restore CA1822

public string ExpectedHost { get; set; }

public ushort ExpectedPort { get; set; }
Expand Down

0 comments on commit 2aeec1e

Please sign in to comment.