public virtual void Visit(ITopologyVisitor visitor)
        {
            Preconditions.CheckNotNull(visitor, "visitor");

            if (Name != string.Empty)
            {
                visitor.CreateExchange(Name, ExchangeType, AutoDelete, Arguments);
                foreach (var binding in bindings)
                {
                    binding.Visit(visitor);
                }
            }
        }
Beispiel #2
0
        public virtual void Visit(ITopologyVisitor visitor)
        {
            Preconditions.CheckNotNull(visitor, "visitor");

            if (Name != string.Empty)
            {
                visitor.CreateExchange(Name, ExchangeType, AutoDelete, Arguments);
                foreach (var binding in bindings)
                {
                    binding.Visit(visitor);
                }
            }
        }
Beispiel #3
0
 public virtual void Visit(ITopologyVisitor visitor)
 {
     if (visitor == null)
     {
         throw new ArgumentNullException("visitor");
     }
     if (Name != string.Empty)
     {
         visitor.CreateExchange(Name, ExchangeType, AutoDelete, Arguments);
         foreach (var binding in bindings)
         {
             binding.Visit(visitor);
         }
     }
 }
Beispiel #4
0
 public virtual void Visit(ITopologyVisitor visitor)
 {
     if (visitor == null)
     {
         throw new ArgumentNullException("visitor");
     }
     if (Name != string.Empty)
     {
         visitor.CreateExchange(Name, ExchangeType, AutoDelete, Arguments);
         foreach (var binding in bindings)
         {
             binding.Visit(visitor);
         }
     }
 }
Beispiel #5
0
        public void Visit(ITopologyVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException("visitor");
            }

            visitor.CreateExchange(Name, ExchangeType);
            foreach (var binding in bindings)
            {
                binding.Visit(visitor);
            }
        }