>We check for all Sends, is that what you mean?
Yes


On Wed, Nov 27, 2013 at 10:00 PM, John Simons <notifications@github.com>wrote:

> In src/NServiceBus.Core/Unicast/UnicastBus.cs:
>
> > @@ -493,11 +520,33 @@ public ICallback Send(object message)
> >
> >          public ICallback Send(params object[] messages)
> >          {
> > -            var destination = GetAddressForMessages(messages);
> > +            var destinations = GetAddressForMessages(messages)
> > +                .Distinct()
> > +                .ToList();
> > +
> > +            if (destinations.Count > 1)
> > +            {
> > +                throw new InvalidOperationException("Batch Sends can only target one address.");
>
>  Skip the "batch" since this applies to all sends?
>
> Done
>
> Do you check this for the others as well? (if users have configured
> multiple targets for the same command)
>
> We check for all Sends, is that what you mean?
>
> Do we override for commands?
>
> Yes, see 1fbefd9#diff-b5a714b98c8764b7886f1ae76cb4c553R72<https://github.com/Particular/NServiceBus/commit/1fbefd9202aba75d507f94f5b79dfe4485544c0a#diff-b5a714b98c8764b7886f1ae76cb4c553R72>
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Particular/NServiceBus/pull/1653/files#r7969566>
> .
>