2 writes to GlobalContextIndex
System.Net.Sockets (2)
System\Net\Sockets\SocketAsyncEngine.Unix.cs (2)
148
context.
GlobalContextIndex
= index;
173
context.
GlobalContextIndex
= -1;
7 references to GlobalContextIndex
System.Net.Sockets (7)
System\Net\Sockets\SocketAsyncEngine.Unix.cs (7)
81
/// <para>It is also stored in <see cref="SocketAsyncContext.
GlobalContextIndex
"/> so that we can efficiently remove it when unregistering the socket.</para>
126
Debug.Assert(context.
GlobalContextIndex
== -1);
152
Interop.Sys.SocketEvents.Read | Interop.Sys.SocketEvents.Write, context.
GlobalContextIndex
);
164
Debug.Assert(context.
GlobalContextIndex
>= 0);
165
Debug.Assert(ReferenceEquals(s_registeredContexts[context.
GlobalContextIndex
], context));
169
s_registeredContexts[context.
GlobalContextIndex
] = null;
170
s_registeredContextsFreeList.Enqueue(context.
GlobalContextIndex
);