CQRSSample.Infrastructure.Installers.EventHandlerHelper.GetEvents C# (CSharp) Method

GetEvents() public static method

public static GetEvents ( ) : IEnumerable
return IEnumerable
        public static IEnumerable<Type> GetEvents()
        {
            return typeof(DomainEvent)
                .Assembly
                .GetExportedTypes()
                .Where(x => x.BaseType == typeof(DomainEvent))
                .ToList();
        }