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