private static void RegisterSinglesAs(IReflection reflection, ContainerBuilder builder) { var injectablesAsEnumerable = reflection.AssignableTypes<Common.Modules.IInjectableAsEnumerable>(); foreach (var injectable in injectablesAsEnumerable) { builder.RegisterType(injectable).As(reflection.GetBaseType(injectable)).SingleInstance(); } }