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); } } }
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); } } }
public void Visit(ITopologyVisitor visitor) { if (visitor == null) { throw new ArgumentNullException("visitor"); } visitor.CreateExchange(Name, ExchangeType); foreach (var binding in bindings) { binding.Visit(visitor); } }