Apache.NMS.ActiveMQ.Commands.DestinationInfo.visit C# (CSharp) Method

visit() public method

public visit ( ICommandVisitor visitor ) : Response
visitor ICommandVisitor
return Response
        public override Response visit(ICommandVisitor visitor)
        {
            if(IsAddOperation)
            {
            return visitor.processAddDestination(this);
            }
            else if(IsRemoveOperation)
            {
            return visitor.processRemoveDestination(this);
            }
            throw new IOException("Unknown operation type: " + OperationType);
        }