2
0

IPluginServiceRegistrator.cs 668 B

12345678910111213141516171819
  1. namespace MediaBrowser.Common.Plugins
  2. {
  3. using Microsoft.Extensions.DependencyInjection;
  4. /// <summary>
  5. /// Defines the <see cref="IPluginServiceRegistrator" />.
  6. /// </summary>
  7. public interface IPluginServiceRegistrator
  8. {
  9. /// <summary>
  10. /// Registers the plugin's services with the service collection.
  11. /// </summary>
  12. /// <remarks>
  13. /// This interface is only used for service registration and requires a parameterless constructor.
  14. /// </remarks>
  15. /// <param name="serviceCollection">The service collection.</param>
  16. void RegisterServices(IServiceCollection serviceCollection);
  17. }
  18. }