5 types derived from SocketAsyncEventArgs
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketAwaitableEventArgs.cs (1)
15internal class SocketAwaitableEventArgs : SocketAsyncEventArgs, IValueTaskSource<SocketOperationResult>
System.Net.Sockets (3)
System\Net\Sockets\Socket.Tasks.cs (2)
961private sealed class TaskSocketAsyncEventArgs<TResult> : SocketAsyncEventArgs 999internal sealed class AwaitableSocketAsyncEventArgs : SocketAsyncEventArgs, IValueTaskSource, IValueTaskSource<int>, IValueTaskSource<Socket>, IValueTaskSource<SocketReceiveFromResult>, IValueTaskSource<SocketReceiveMessageFromResult>
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
867private sealed class MultiConnectSocketAsyncEventArgs : SocketAsyncEventArgs, IValueTaskSource
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
19internal class SocketAwaitableEventArgs : SocketAsyncEventArgs, IValueTaskSource<int>, IValueTaskSource
10 instantiations of SocketAsyncEventArgs
ClientSample (2)
Tcp\SocketReceiver.cs (1)
15private readonly SocketAsyncEventArgs _eventArgs = new SocketAsyncEventArgs();
Tcp\SocketSender.cs (1)
18private readonly SocketAsyncEventArgs _eventArgs = new SocketAsyncEventArgs();
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
894_asyncReadEventArgs = new SocketAsyncEventArgs(); 911_asyncWriteEventArgs = new SocketAsyncEventArgs();
IIS.Common.TestLib (1)
TestConnections.cs (1)
211var eventArgs = new SocketAsyncEventArgs();
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
175var socketArgs = new SocketAsyncEventArgs();
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
66var socketArgs = new SocketAsyncEventArgs();
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
1216var socketArgs = new SocketAsyncEventArgs
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
66var socketArgs = new SocketAsyncEventArgs();
System.Net.HttpListener (1)
System\Net\Managed\HttpEndPointListener.cs (1)
67SocketAsyncEventArgs args = new SocketAsyncEventArgs();
59 references to SocketAsyncEventArgs
ClientSample (2)
Tcp\SocketReceiver.cs (1)
15private readonly SocketAsyncEventArgs _eventArgs = new SocketAsyncEventArgs();
Tcp\SocketSender.cs (1)
18private readonly SocketAsyncEventArgs _eventArgs = new SocketAsyncEventArgs();
dotnet-svcutil-lib (11)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (11)
18private static EventHandler<SocketAsyncEventArgs> s_onReceiveAsyncCompleted; 19private static EventHandler<SocketAsyncEventArgs> s_onSocketSendCompleted; 29private SocketAsyncEventArgs _asyncReadEventArgs; 33private SocketAsyncEventArgs _asyncWriteEventArgs; 103private static void OnReceiveAsyncCompleted(object sender, SocketAsyncEventArgs e) 108private static void OnSendAsyncCompleted(object sender, SocketAsyncEventArgs e) 452private void OnSendAsync(object sender, SocketAsyncEventArgs eventArgs) 692private void OnReceiveAsync(object sender, SocketAsyncEventArgs eventArgs) 770private void SetUserToken(SocketAsyncEventArgs args, object userToken) 891s_onReceiveAsyncCompleted = new EventHandler<SocketAsyncEventArgs>(OnReceiveAsyncCompleted); 908s_onSocketSendCompleted = new EventHandler<SocketAsyncEventArgs>(OnSendAsyncCompleted);
IIS.Common.TestLib (2)
TestConnections.cs (2)
211var eventArgs = new SocketAsyncEventArgs(); 224private void ReceiveAsyncCompleted(object sender, SocketAsyncEventArgs e)
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
175var socketArgs = new SocketAsyncEventArgs();
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketAwaitableEventArgs.cs (1)
33protected override void OnCompleted(SocketAsyncEventArgs _)
netstandard (1)
netstandard.cs (1)
1269[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.SocketAsyncEventArgs))]
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
66var socketArgs = new SocketAsyncEventArgs();
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
1216var socketArgs = new SocketAsyncEventArgs
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
66var socketArgs = new SocketAsyncEventArgs();
System (1)
src\libraries\shims\System\ref\System.cs (1)
759[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.SocketAsyncEventArgs))]
System.Net (1)
System.Net.cs (1)
40[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.SocketAsyncEventArgs))]
System.Net.HttpListener (4)
System\Net\Managed\HttpEndPointListener.cs (4)
67SocketAsyncEventArgs args = new SocketAsyncEventArgs(); 81private void Accept(SocketAsyncEventArgs e) 108private void ProcessAccept(SocketAsyncEventArgs args) 139private static void OnAccept(object? sender, SocketAsyncEventArgs e)
System.Net.Sockets (31)
System\Net\Sockets\Socket.cs (20)
2833public bool AcceptAsync(SocketAsyncEventArgs e) => AcceptAsync(e, CancellationToken.None); 2835private bool AcceptAsync(SocketAsyncEventArgs e, CancellationToken cancellationToken) 2879public bool ConnectAsync(SocketAsyncEventArgs e) => 2882internal bool ConnectAsync(SocketAsyncEventArgs e, bool userSocket, bool saeaCancelable) 2985public static bool ConnectAsync(SocketType socketType, ProtocolType protocolType, SocketAsyncEventArgs e) 3029public static void CancelConnectAsync(SocketAsyncEventArgs e) 3036public bool DisconnectAsync(SocketAsyncEventArgs e) => DisconnectAsync(e, default); 3038private bool DisconnectAsync(SocketAsyncEventArgs e, CancellationToken cancellationToken) 3062public bool ReceiveAsync(SocketAsyncEventArgs e) => ReceiveAsync(e, default(CancellationToken)); 3064private bool ReceiveAsync(SocketAsyncEventArgs e, CancellationToken cancellationToken) 3087public bool ReceiveFromAsync(SocketAsyncEventArgs e) => ReceiveFromAsync(e, default); 3089private bool ReceiveFromAsync(SocketAsyncEventArgs e, CancellationToken cancellationToken) 3144public bool ReceiveMessageFromAsync(SocketAsyncEventArgs e) => ReceiveMessageFromAsync(e, default); 3146private bool ReceiveMessageFromAsync(SocketAsyncEventArgs e, CancellationToken cancellationToken) 3191public bool SendAsync(SocketAsyncEventArgs e) => SendAsync(e, default(CancellationToken)); 3193private bool SendAsync(SocketAsyncEventArgs e, CancellationToken cancellationToken) 3216public bool SendPacketsAsync(SocketAsyncEventArgs e) => SendPacketsAsync(e, default(CancellationToken)); 3218private bool SendPacketsAsync(SocketAsyncEventArgs e, CancellationToken cancellationToken) 3249public bool SendToAsync(SocketAsyncEventArgs e) => SendToAsync(e, default); 3251private bool SendToAsync(SocketAsyncEventArgs e, CancellationToken cancellationToken)
System\Net\Sockets\Socket.Tasks.cs (2)
116using (cancellationToken.UnsafeRegister(o => CancelConnectAsync((SocketAsyncEventArgs)o!), saea)) 1039protected override void OnCompleted(SocketAsyncEventArgs _) => _mrvtsc.SetResult(true);
System\Net\Sockets\SocketAsyncEventArgs.cs (9)
75private static ConditionalWeakTable<SocketAsyncEventArgs, Activity>? s_connectActivityTable; 204public event EventHandler<SocketAsyncEventArgs>? Completed; 217protected virtual void OnCompleted(SocketAsyncEventArgs e) 320LazyInitializer.EnsureInitialized(ref s_connectActivityTable, () => new ConditionalWeakTable<SocketAsyncEventArgs, Activity>()); 354internal void CopyBufferFrom(SocketAsyncEventArgs source) 471var thisRef = (SocketAsyncEventArgs)state!; 777using (cancellationToken.UnsafeRegister(s => Socket.CancelConnectAsync((SocketAsyncEventArgs)s!), internalArgs)) 881protected override void OnCompleted(SocketAsyncEventArgs e) => _mrvtsc.SetResult(true);
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
65protected override void OnCompleted(SocketAsyncEventArgs _)