// Constructors public InMemoryBus( IServiceProvider serviceProvider, IHandlerRegistrationManager handlerRegistrationManager ) { _serviceProvider = serviceProvider; _handlerRegistrationManager = handlerRegistrationManager; }
// Constructors public InMemoryBus( IServiceProvider serviceProvider, TypeRegistration[] typeRegistrationCollection) { _serviceProvider = serviceProvider; _handlerRegistrationManager = (IHandlerRegistrationManager)_serviceProvider.GetService(typeof(IHandlerRegistrationManager)); _typeRegistrationCollection = typeRegistrationCollection; }