Optimized downloading of assemblies when using WebAssembly

This commit is contained in:
Shaun Walker
2020-05-18 18:02:23 -04:00
parent 5e23448618
commit 1532eb7586
6 changed files with 111 additions and 45 deletions

View File

@ -76,7 +76,8 @@ namespace System.Reflection
public static IEnumerable<Assembly> GetOqtaneClientAssemblies(this AppDomain appDomain)
{
return appDomain.GetOqtaneAssemblies()
.Where(a => a.GetTypes<IModuleControl>().Any() || a.GetTypes<IThemeControl>().Any() || a.GetTypes<IClientStartup>().Any());
.Where(a => a.GetTypes<IModuleControl>().Any() || a.GetTypes<IThemeControl>().Any() || a.GetTypes<IClientStartup>().Any())
.Where(a => Utilities.GetFullTypeName(a.GetName().Name) != "Oqtane.Client");
}
}
}