Update ApplicationHost.cs

This commit is contained in:
BaronGreenback 2020-10-12 20:34:18 +01:00 committed by GitHub
parent 257acbc2c9
commit 63e514e6c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -827,11 +827,11 @@ namespace Emby.Server.Implementations
private void RegisterPluginServices()
{
foreach (var pluginServiceRegistrar in GetExportTypes<IPluginRegistrar>())
foreach (var pluginServiceRegistrar in GetExportTypes<IPluginServiceRegistrator>())
{
try
{
var instance = (IPluginRegistrar)Activator.CreateInstance(pluginServiceRegistrar);
var instance = (IPluginServiceRegistrator)Activator.CreateInstance(pluginServiceRegistrar);
instance.RegisterServices(ServiceCollection);
}
catch (Exception ex)