ClientAssembly selection criteria changed

This commit is contained in:
Pavel Vesely
2020-05-12 23:17:37 +02:00
parent da73d519d7
commit 4c188b782d
3 changed files with 3 additions and 1 deletions

View File

@ -1,8 +1,10 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Oqtane.Modules;
using Oqtane.Services;
using Oqtane.Shared;
using Oqtane.Themes;
// ReSharper disable once CheckNamespace
namespace System.Reflection
@ -74,7 +76,7 @@ namespace System.Reflection
public static IEnumerable<Assembly> GetOqtaneClientAssemblies(this AppDomain appDomain)
{
return appDomain.GetOqtaneAssemblies()
.Where(a => a.GetTypes<IClientStartup>().Any());
.Where(a => a.GetTypes<IModuleControl>().Any() || a.GetTypes<IThemeControl>().Any() || a.GetTypes<IClientStartup>().Any());
}
}
}