/// <summary> /// Initializes a new instance of the <see cref="MessageBus" /> class. /// </summary> /// <param name="messageBus">The message bus.</param> /// <param name="registeredTypes">The registered types.</param> public MessageBus(SlimMessageBus.IMessageBus messageBus, HashSet <Type> registeredTypes) { this.messageBus = messageBus; // For crying out loud this is something that SlimMessageBus should handle internally this.registeredTypes = registeredTypes; }