コード例 #1
0
ファイル: AmqpConnection.cs プロジェクト: modulexcite/IL2JS
 void OnReceiveClose(Close close)
 {
     this.OnReceiveCloseCommand("R:CLOSE", close.Error);
     if (this.State == AmqpObjectState.End)
     {
         this.AsyncIO.Close();
     }
 }
コード例 #2
0
ファイル: AmqpConnection.cs プロジェクト: modulexcite/IL2JS
        void SendClose()
        {
            this.TransitState("S:CLOSE", StateTransition.SendClose);
            Close close = new Close();
            if (this.TerminalException != null)
            {
                close.Error = AmqpError.FromException(this.TerminalException);
            }

            this.SendCommand(close, 0);
        }