FileFind.Meshwork.LocalNodeConnection.MessageSent C# (CSharp) Méthode

MessageSent() private méthode

private MessageSent ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void
        private void MessageSent(IAsyncResult asyncResult)
        {
            try {
                transport.EndSendMessage(asyncResult);

                SentMessageInfo info = (SentMessageInfo)asyncResult.AsyncState;
                info.Sent = true;

            } catch (Exception ex) {
                if (connectionState != ConnectionState.Disconnected) {
                    Disconnect(ex);
                } else {
                    LoggingService.LogWarning("Tried to send a message after being disconnected");
                }
            }
        }