intro-skipper/IntroSkipper/PluginServiceRegistrator.cs

24 lines
769 B
C#
Raw Normal View History

2024-10-25 14:33:26 -04:00
// Copyright (C) 2024 Intro-Skipper contributors <intro-skipper.org>
// SPDX-License-Identifier: GPL-3.0-only.
2024-10-25 13:42:34 -04:00
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>();
2024-03-22 23:41:58 +01:00
}
}
}