Selector/Selector.Web/Extensions/ServiceExtensions.cs

18 lines
547 B
C#
Raw Normal View History

2021-11-29 21:48:00 +00:00
using Microsoft.Extensions.DependencyInjection;
using Selector.Web.Service;
namespace Selector.Web.Extensions
{
public static class ServiceExtensions
{
public static void AddCacheHubProxy(this IServiceCollection services)
{
services.AddSingleton<CacheHubProxy>();
services.AddHostedService<CacheHubProxyService>();
services.AddTransient<INowPlayingMappingFactory, NowPlayingMappingFactory>();
services.AddScoped<IUserMapping, NowPlayingUserMapping>();
}
}
}