7 instantiations of TcpStateInfo
Microsoft.Extensions.Diagnostics.ResourceMonitoring (7)
Linux\Network\LinuxNetworkUtilizationParser.cs (1)
142TcpStateInfo tcpStateInfo = new();
Linux\Network\LinuxTcpStateInfo.cs (2)
16private TcpStateInfo _iPv4Snapshot = new(); 17private TcpStateInfo _iPv6Snapshot = new();
Windows\Network\WindowsTcpStateInfo.cs (4)
23private TcpStateInfo _iPv4Snapshot = new(); 24private TcpStateInfo _iPv6Snapshot = new(); 157var tcpStateInfo = new TcpStateInfo(); 182var tcpStateInfo = new TcpStateInfo();
35 references to TcpStateInfo
Microsoft.Extensions.Diagnostics.ResourceMonitoring (26)
ITcpStateInfoProvider.cs (4)
14/// <returns>An instance of <see cref="TcpStateInfo"/>.</returns> 15TcpStateInfo GetpIpV4TcpStateInfo(); 20/// <returns>An instance of <see cref="TcpStateInfo"/>.</returns> 21TcpStateInfo GetpIpV6TcpStateInfo();
Linux\Network\LinuxNetworkMetrics.cs (2)
50TcpStateInfo stateV4 = _tcpStateInfoProvider.GetpIpV4TcpStateInfo(); 64TcpStateInfo stateV6 = _tcpStateInfoProvider.GetpIpV6TcpStateInfo();
Linux\Network\LinuxNetworkUtilizationParser.cs (5)
35public TcpStateInfo GetTcpIPv4StateInfo() => GetTcpStateInfo(_tcp); 40public TcpStateInfo GetTcpIPv6StateInfo() => GetTcpStateInfo(_tcp6); 51private static void UpdateTcpStateInfo(ReadOnlySpan<char> buffer, TcpStateInfo tcpStateInfo) 138private TcpStateInfo GetTcpStateInfo(FileInfo file) 142TcpStateInfo tcpStateInfo = new();
Linux\Network\LinuxTcpStateInfo.cs (4)
16private TcpStateInfo _iPv4Snapshot = new(); 17private TcpStateInfo _iPv6Snapshot = new(); 26public TcpStateInfo GetpIpV4TcpStateInfo() 32public TcpStateInfo GetpIpV6TcpStateInfo()
Windows\Network\WindowsNetworkMetrics.cs (2)
50TcpStateInfo stateV4 = _tcpStateInfoProvider.GetpIpV4TcpStateInfo(); 65TcpStateInfo stateV6 = _tcpStateInfoProvider.GetpIpV6TcpStateInfo();
Windows\Network\WindowsTcpStateInfo.cs (9)
23private TcpStateInfo _iPv4Snapshot = new(); 24private TcpStateInfo _iPv6Snapshot = new(); 45public TcpStateInfo GetpIpV4TcpStateInfo() 51public TcpStateInfo GetpIpV6TcpStateInfo() 57internal static void CalculateCount(TcpStateInfo tcpStateInfo, MIB_TCP_STATE state) 152private TcpStateInfo GetSnapshot() 157var tcpStateInfo = new TcpStateInfo(); 177private TcpStateInfo GetIPv6Snapshot() 182var tcpStateInfo = new TcpStateInfo();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (9)
Linux\LinuxCountersTests.cs (2)
135var tcpIPv4StateInfo = parser.GetTcpIPv4StateInfo(); 136var tcpIPv6StateInfo = parser.GetTcpIPv6StateInfo();
Linux\LinuxNetworkUtilizationParserTests.cs (1)
104var tcp6StateInfo = parser.GetTcpIPv6StateInfo();
Windows\Tcp6TableInfoTests.cs (3)
241var tcpStateInfo = tcp6TableInfo.GetpIpV6TcpStateInfo(); 257var tcpStateInfo = tcp6TableInfo.GetpIpV6TcpStateInfo(); 273var tcpStateInfo = tcp6TableInfo.GetpIpV6TcpStateInfo();
Windows\TcpTableInfoTests.cs (3)
184var tcpStateInfo = tcpTableInfo.GetpIpV4TcpStateInfo(); 200var tcpStateInfo = tcpTableInfo.GetpIpV4TcpStateInfo(); 216var tcpStateInfo = tcpTableInfo.GetpIpV4TcpStateInfo();