Amqp.Session.ThrowIfEnded C# (CSharp) Method

ThrowIfEnded() private method

private ThrowIfEnded ( string operation ) : void
operation string
return void
        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)
                    });
            }
        }