Compare commits

..

No commits in common. "f74577f80a660374b44f0f393a2ce34fadb66356" and "f92d23b54f60918ad4c4fc7ac92899ecfc2bfe8c" have entirely different histories.

View file

@ -70,27 +70,7 @@ namespace Yavsc.Helpers
foreach (var a in System.AppDomain.CurrentDomain.GetAssemblies())
{
Type[] types;
try
{
types = a.GetTypes();
}
catch (System.Reflection.ReflectionTypeLoadException rtle)
{
// Some referenced types failed to load; keep the
// ones that did and skip the rest so a flaky
// dependency in one assembly does not break
// billing initialization for every other assembly.
types = rtle.Types.Where(t => t != null).ToArray();
}
catch
{
// Assembly itself cannot be loaded (FileNotFoundException
// on a referenced assembly, etc.). Skip it entirely.
continue;
}
foreach (var c in types)
foreach (var c in a.GetTypes())
{
if (c.IsClass && !c.IsAbstract &&
c.GetInterface(nameof(IUserSettings)) != null)