rlauuzo e37de35445
Make Entrypoint run at start (#109)
* Update Entrypoint.cs

* Update PluginServiceRegistrator.cs
2024-04-11 16:58:37 +02:00

20 lines
615 B
C#

using MediaBrowser.Controller;
using MediaBrowser.Controller.Plugins;
using Microsoft.Extensions.DependencyInjection;
namespace ConfusedPolarBear.Plugin.IntroSkipper
{
/// <summary>
/// Register Intro Skipper services.
/// </summary>
public class PluginServiceRegistrator : IPluginServiceRegistrator
{
/// <inheritdoc />
public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost)
{
serviceCollection.AddHostedService<AutoSkip>();
serviceCollection.AddHostedService<Entrypoint>();
}
}
}