1 write to m_ReadEventArgs
System (1)
net\System\Net\WebSockets\WebSocketConnectionStream.cs (1)
872
m_ReadEventArgs
= new SocketAsyncEventArgs();
11 references to m_ReadEventArgs
System (11)
net\System\Net\WebSockets\WebSocketConnectionStream.cs (11)
560
if (
m_ReadEventArgs
!= null)
562
m_ReadEventArgs
.Completed -= s_OnReadCompleted;
563
m_ReadEventArgs
.Dispose();
768
Contract.Assert(
m_ReadEventArgs
!= null, "'m_ReadEventArgs' MUST NOT be NULL.");
769
m_ReadEventArgs
.SetBuffer(buffer, offset, count);
781
completedAsynchronously = innerSocket.ReceiveAsync(
m_ReadEventArgs
);
784
if (
m_ReadEventArgs
.SocketError != SocketError.Success)
788
throw new SocketException(
m_ReadEventArgs
.SocketError);
796
return Task.FromResult<int>(
m_ReadEventArgs
.BytesTransferred);
873
m_ReadEventArgs
.UserToken = this;
874
m_ReadEventArgs
.Completed += s_OnReadCompleted;