I didn't change the code. But yes!

Since we're deprecating multi message in 5.0 anyway should we just kill this off?

Sent from my iPhone

> On 9 nov 2013, at 06:20, Simon Cropp <notifications@github.com> wrote:
> 
> In src/NServiceBus.Core/Unicast/Behaviors/MultiSendValidatorBehavior.cs:
> 
> > +    using System.Linq;
> > +    using Pipeline;
> > +    using Pipeline.Contexts;
> > +
> > +    internal class MultiSendValidatorBehavior : IBehavior<SendLogicalMessagesContext>
> > +    {
> > +        public void Invoke(SendLogicalMessagesContext context, Action next)
> > +        {
> > +
> > +            if (context.LogicalMessages.Count() > 1)
> > +            {
> > +                // Users can't send more than one message with a DataBusProperty in the same TransportMessage, Yes this is a limitation for now!
> > +                var numberOfMessagesWithDataBusProperties = 0;
> > +                foreach (var message in context.LogicalMessages)
> > +                {
> > +                    var hasAtLeastOneDataBusProperty = message.MessageType.GetProperties().Any(MessageConventionExtensions.IsDataBusProperty);
> doesnt this cause reflection on every property of every message on every send?
> 
> —
> Reply to this email directly or view it on GitHub.