void OnReceiveClose(Close close) { this.OnReceiveCloseCommand("R:CLOSE", close.Error); if (this.State == AmqpObjectState.End) { this.AsyncIO.Close(); } }
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); }