void ThrowIfEnded(string operation) { if (this.state >= State.EndPipe) { throw new AmqpException(this.Error ?? new Error() { Condition = ErrorCode.IllegalState, Description = Fx.Format(SRAmqp.AmqpIllegalOperationState, operation, this.state) }); } }