intro-skipper/IntroSkipper/PluginServiceRegistrator.cs

26 lines
903 B
C#
Raw Normal View History

using IntroSkipper.Manager;
using IntroSkipper.Providers;
using IntroSkipper.Services;
2024-03-22 23:41:58 +01:00
using MediaBrowser.Controller;
using MediaBrowser.Controller.Plugins;
using Microsoft.Extensions.DependencyInjection;
namespace IntroSkipper
2024-03-22 23:41:58 +01:00
{
/// <summary>
/// Register Intro Skipper services.
/// </summary>
public class PluginServiceRegistrator : IPluginServiceRegistrator
{
/// <inheritdoc />
public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost)
{
serviceCollection.AddHostedService<AutoSkip>();
2024-05-13 14:25:52 +02:00
serviceCollection.AddHostedService<AutoSkipCredits>();
serviceCollection.AddHostedService<Entrypoint>();
serviceCollection.AddSingleton<IMediaSegmentProvider, SegmentProvider>();
serviceCollection.AddSingleton<MediaSegmentUpdateManager>();
2024-03-22 23:41:58 +01:00
}
}
}