Bottles.Services.BottleServiceApplication.FindLoaderTypes C# (CSharp) Метод

FindLoaderTypes() публичный статический Метод

public static FindLoaderTypes ( ) : IEnumerable
Результат IEnumerable
        public static IEnumerable<Type> FindLoaderTypes()
        {
            var list = new List<Type>();

            AssemblyFinder.FindAssemblies(a => !a.IsDynamic && a.GetName().Name != "Bottles").Each(assem => {
                try
                {
                    list.AddRange(assem.GetExportedTypes().Where(IsLoaderTypeCandidate));
                }
                catch (Exception)
                {

                    Console.WriteLine("Unable to find exported types for assembly " + assem.FullName);
                }
            });

            return list;
        }