In unity, I can register all interface types from the assembly using this method.
public static void RegisterTypes(IUnityContainer container) { container.RegisterTypes( AllClasses.FromLoadedAssemblies(). Where( type => typeof (IRunAtInit).IsAssignableFrom(type), WithMappings.FromAllInterfaces, WithName.TypeName); }
Is it possible to implement this .net kernel this way using my own default service container?
source share