EventStore.Transport.Tcp.TcpConnection.ProcessSend C# (CSharp) Метод

ProcessSend() приватный Метод

private ProcessSend ( SocketAsyncEventArgs socketArgs ) : void
socketArgs System.Net.Sockets.SocketAsyncEventArgs
Результат void
        private void ProcessSend(SocketAsyncEventArgs socketArgs)
        {
            Interlocked.Increment(ref _sentAsyncCallbacks);
            if (socketArgs.SocketError != SocketError.Success)
            {
                NotifySendCompleted(0);
                ReturnSendingSocketArgs();
                CloseInternal(socketArgs.SocketError);
                return;
            }
            NotifySendCompleted((uint) socketArgs.Count);
            //Console.WriteLine(String.Format("{0:mmss.fff}", DateTime.Now) + " done sending " + _memoryStream.Length + " bytes.");
            var sentPackages = Interlocked.Increment(ref _packagesSent);

            lock (_sendingLock)
            {
                _isSending = false;
            }
            TrySend();
        }