void OnReceiveEnd(End end) { this.OnReceiveCloseCommand("R:END", end.Error); }
protected AmqpObjectState SendEnd() { StateTransition transition = this.TransitState("S:END", StateTransition.SendClose); End end = new End(); Exception exception = this.TerminalException; if (exception != null) { end.Error = Error.FromException(exception); } this.SendCommand(end); return transition.To; }