Following the article: http://www.udidahan.com/2009/06/14/domain-events-salvation/ we can see that the DomainEvents implementation uses the DI container
public static IContainer Container { get; set; }
and then
if(Container != null) { foreach(var handler in Container.ResolveAll<Handles<T>>()) handler.Handle(args); }
Do I have to integrate the DI container inside the same assembly, am I storing domain objects or can I urgently / abstract from Container.ResolveAll<Handles<T>>() ? (In my previous experiences, I put all the DI-related things inside global.asax.cs ).
Technically, I am only familiar with the Ninject DI container, but I will probably understand this concept, so your tips / illustrations will be appreciated.
Thanks!
source share