diff options
| author | David <daullmer@gmail.com> | 2020-08-14 20:42:26 +0200 |
|---|---|---|
| committer | David <daullmer@gmail.com> | 2020-08-14 20:42:26 +0200 |
| commit | 025ee2163ffea826083fdea6a084090733ab8fff (patch) | |
| tree | 1468f713e9234f50a3aad1cb10767f65ceef0b04 | |
| parent | d296a1f6d0ee8cb48c2234aa9666d01035cd18b5 (diff) | |
Change log message, load assembly only once
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 4fb5d40c5..62c2e55c2 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -1388,11 +1388,12 @@ namespace Emby.Server.Implementations public IEnumerable<Assembly> GetApiPluginAssemblies() { var types = _allConcreteTypes - .Where(i => typeof(ControllerBase).IsAssignableFrom(i)); + .Where(i => typeof(ControllerBase).IsAssignableFrom(i)) + .Distinct(); foreach (var type in types) { - Logger.LogDebug("Found API endpoints in plugin " + type.Assembly.FullName); + Logger.LogDebug("Found API endpoints in plugin {name}", type.Assembly.FullName); yield return type.Assembly; } } |
