parent
2b742be38e
commit
1e1e1560a4
@ -1,19 +0,0 @@
|
|||||||
namespace MediaBrowser.Common.Plugins
|
|
||||||
{
|
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Defines the <see cref="IPluginServiceRegistrator" />.
|
|
||||||
/// </summary>
|
|
||||||
public interface IPluginServiceRegistrator
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Registers the plugin's services with the service collection.
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// This interface is only used for service registration and requires a parameterless constructor.
|
|
||||||
/// </remarks>
|
|
||||||
/// <param name="serviceCollection">The service collection.</param>
|
|
||||||
void RegisterServices(IServiceCollection serviceCollection);
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,19 @@
|
|||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
|
namespace MediaBrowser.Controller.Plugins;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines the <see cref="IPluginServiceRegistrator" />.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This interface is only used for service registration and requires a parameterless constructor.
|
||||||
|
/// </remarks>
|
||||||
|
public interface IPluginServiceRegistrator
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Registers the plugin's services with the service collection.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="serviceCollection">The service collection.</param>
|
||||||
|
/// <param name="applicationHost">The server application host.</param>
|
||||||
|
void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost);
|
||||||
|
}
|
Loading…
Reference in new issue