Beispiel #1
0
    private void OnPostMessageCallback(IAsyncResult iasyncResult_0)
    {
        Class37 asyncState = (Class37)iasyncResult_0.AsyncState;

        asyncState.method_0().imethod_15();
        try
        {
            if (!asyncState.method_0().imethod_6())
            {
                asyncState.method_0().GetStream().EndWrite(iasyncResult_0);
                this.eventSafeTrigger_0.Action <IPEndPoint, IMessageHandler>("MessageSent", this.MessageSent, asyncState.method_0().GetIPEndPoint(), asyncState.method_2());
            }
        }
        catch (Exception exception)
        {
            if ((exception is IOException) || (exception is ObjectDisposedException))
            {
                this.OnSomeOneDisconnected(asyncState.method_0(), DisconnectedType.NetworkInterrupted);
            }
            else
            {
                this.emptyAgileLogger_0.Log(exception, "CJFramework.Engine.Tcp.Server.BaseTcpEngine.OnPostMessageCallback", ErrorLevel.High);
            }
        }
    }