7 instantiations of LingerOption
Aspire.Hosting.Tests (1)
Backchannel\AuxiliaryBackchannelTests.cs (1)
586
socket.LingerState = new
LingerOption
(true, 0);
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
192
_socket.LingerState = new
LingerOption
(true, 0);
316
_socket.LingerState = new
LingerOption
(true, (int)timeout.TotalSeconds);
System.Net.Mail (1)
System\Net\Mail\SmtpConnection.cs (1)
265
_tcpClient.LingerState = new
LingerOption
(true, 0);
System.Net.Sockets (3)
System\Net\Sockets\Socket.cs (2)
588
if (OperatingSystem.IsWasi()) return new
LingerOption
(false, 0);
3701
if (OperatingSystem.IsWasi()) return new
LingerOption
(false, 0);
System\Net\Sockets\SocketPal.Unix.cs (1)
1758
optionValue = new
LingerOption
(opt.OnOff != 0, opt.Seconds);
17 references to LingerOption
netstandard (1)
netstandard.cs (1)
1261
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
LingerOption
))]
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
751
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
LingerOption
))]
System.Net.Sockets (15)
System\Net\Sockets\LingerOption.cs (1)
47
return comparand is
LingerOption
option && option.Enabled == _enabled && option.LingerTime == _lingerTime;
System\Net\Sockets\SafeSocketHandle.Unix.OptionTracking.cs (2)
32
internal void GetTrackedSocketOptions(Span<int> values, out
LingerOption
? lingerOption)
83
internal void SetTrackedSocketOptions(ReadOnlySpan<int> values,
LingerOption
? lingerOption)
System\Net\Sockets\Socket.cs (7)
584
public
LingerOption
? LingerState
590
return (
LingerOption
?)GetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Linger);
2128
LingerOption
? lingerOption = optionValue as
LingerOption
;
3684
private void SetLingerOption(
LingerOption
lref)
3699
private
LingerOption
? GetLingerOpt()
3703
LingerOption
? lingerOption;
System\Net\Sockets\Socket.Unix.cs (1)
139
_handle.GetTrackedSocketOptions(optionValues, out
LingerOption
? lingerOption);
System\Net\Sockets\SocketPal.Unix.cs (3)
1572
public static unsafe SocketError SetLingerOption(SafeSocketHandle handle,
LingerOption
optionValue)
1748
public static unsafe SocketError GetLingerOption(SafeSocketHandle handle, out
LingerOption
? optionValue)
1754
optionValue = default(
LingerOption
);
System\Net\Sockets\TCPClient.cs (1)
348
public
LingerOption
? LingerState