NServiceBus/NServiceBus — pull request #231 by mj1856 (2012-03-21 18:37:04+00:00)
Title: Prevent erroneous Pub/Sub warning messages.

Change .Publish so that AssertIsValidForPubSub uses the actual type of the first message. This is better than using typeof(T) because the caller may have boxed the message in an Object. This prevents the warning that is fired erroneously when publishing from an EventStore dispatcher. (See recent topic "Dispatching events to NServiceBus from EventStore" on the NServiceBus yahoo group.)