I\'m trying to introduce domain events into a project. The concept is described in Udi Dahan\'s post - http://www.udidahan.com/2009/06/14/domain-events-salvation/
Here\'
As Peter pointed out, the registration problem was with your Where()
clause.
When scanning assemblies Autofac filters components automatically based on the services you specify, so it would be equally correct to just use:
builder.RegisterAssemblyTypes(asm)
.AsClosedTypesOf(handlerType)
.InstancePerLifetimeScope();