/// <summary> /// <para> /// Gets an observer that publishes messages to all subscribed consumers for /// the message type as specified by the generic parameter. /// </para> /// <para> /// Read up on publishing: http://readthedocs.org/docs/masstransit/en/latest/overview/publishing.html /// </para> /// </summary> /// <typeparam name="T">The type of the message</typeparam> /// <param name="bus">The message bus</param> public static IObserver <T> AsObserver <T>(this IServiceBus bus) where T : class { return(bus.AsObserver <T>( contextCallback => { })); }