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