public CompositeMessageBus(IEnumerable <IMqConfig> messageQueues) { _routes = messageQueues .SelectMany(mq => mq.Routes()) .ToList(); _defaultRoute = new LocalMessageBusRoute(); }
protected virtual void AddRoute(IMqRoute route) { if (route == null) { throw new ArgumentNullException("route"); } if (_frozen) { throw new InvalidOperationException("Object is frozen. Cannot configure any more."); } _routes.Add(route); }
protected virtual void AddRoute(IMqRoute route) { if (route == null) throw new ArgumentNullException("route"); if (_frozen) throw new InvalidOperationException("Object is frozen. Cannot configure any more."); _routes.Add(route); }