Update ApplicationHost.cs
This commit is contained in:
parent
257acbc2c9
commit
63e514e6c4
|
@ -827,11 +827,11 @@ namespace Emby.Server.Implementations
|
||||||
|
|
||||||
private void RegisterPluginServices()
|
private void RegisterPluginServices()
|
||||||
{
|
{
|
||||||
foreach (var pluginServiceRegistrar in GetExportTypes<IPluginRegistrar>())
|
foreach (var pluginServiceRegistrar in GetExportTypes<IPluginServiceRegistrator>())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var instance = (IPluginRegistrar)Activator.CreateInstance(pluginServiceRegistrar);
|
var instance = (IPluginServiceRegistrator)Activator.CreateInstance(pluginServiceRegistrar);
|
||||||
instance.RegisterServices(ServiceCollection);
|
instance.RegisterServices(ServiceCollection);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user