Beispiel #1
0
        public static void MapAggregateImplementations(this ITypeMapper mapper, Assembly assembly)
        {
            var implementations = assembly.GetTypes().Where(t => typeof(IAggregate).IsAssignableFrom(t) && !t.IsAbstract && t.IsClass);

            foreach (var implementation in implementations)
            {
                mapper.MapAggregate(implementation.Name.ToKebabCase(), implementation);
            }
        }