void OnReceiveClose(Close close) { this.OnReceiveCloseCommand("R:CLOSE", close.Error); if (this.State == AmqpObjectState.End) { this.AsyncIO.SafeClose(); } }
void SendClose() { this.TransitState("S:CLOSE", StateTransition.SendClose); Close close = new Close(); if (this.TerminalException != null) { close.Error = Error.FromException(this.TerminalException); } this.SendCommand(close, 0, null); }