CQRSalad.EventSourcing.ApplicationServiceGenerator.GetAggregateTypes C# (CSharp) Метод

GetAggregateTypes() приватный статический Метод

private static GetAggregateTypes ( Assembly assemblyWithAggregates ) : List
assemblyWithAggregates System.Reflection.Assembly
Результат List
        private static List<Type> GetAggregateTypes(Assembly assemblyWithAggregates)
        {
            return assemblyWithAggregates.GetExportedTypes().Where(x => x.IsClass && !x.IsAbstract && !x.IsGenericType && x.IsPublic
                                                                        && typeof (AggregateRoot).IsAssignableFrom(x)).ToList();
        }
    }
ApplicationServiceGenerator