Compare commits
No commits in common. "f74577f80a660374b44f0f393a2ce34fadb66356" and "f92d23b54f60918ad4c4fc7ac92899ecfc2bfe8c" have entirely different histories.
f74577f80a
...
f92d23b54f
1 changed files with 1 additions and 21 deletions
|
|
@ -70,27 +70,7 @@ namespace Yavsc.Helpers
|
||||||
|
|
||||||
foreach (var a in System.AppDomain.CurrentDomain.GetAssemblies())
|
foreach (var a in System.AppDomain.CurrentDomain.GetAssemblies())
|
||||||
{
|
{
|
||||||
Type[] types;
|
foreach (var c in a.GetTypes())
|
||||||
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)
|
|
||||||
{
|
{
|
||||||
if (c.IsClass && !c.IsAbstract &&
|
if (c.IsClass && !c.IsAbstract &&
|
||||||
c.GetInterface(nameof(IUserSettings)) != null)
|
c.GetInterface(nameof(IUserSettings)) != null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue