public static void AddTypesImplementingInCurrentAssembly()

in generators/app/templates/default/src/Foundation/DependencyInjection/CodeFolderX/ServiceCollectionExtensions.cs [111:115]


        public static void AddTypesImplementingInCurrentAssembly<T>(this IServiceCollection serviceCollection, Lifetime lifetime)
        {
            var types = GetTypesImplementing(typeof(T), new[] { Assembly.GetCallingAssembly() });
            serviceCollection.Add(lifetime, types.ToArray());
        }