Selector/Selector.Web/Extensions/ServiceExtensions.cs

20 lines
601 B
C#
Raw Normal View History

2021-11-29 21:48:00 +00:00
using Microsoft.Extensions.DependencyInjection;
using Selector.Web.Service;
using Selector.Web.Hubs;
2023-01-22 10:28:52 +00:00
using Selector.SignalR;
2021-11-29 21:48:00 +00:00
namespace Selector.Web.Extensions
{
public static class ServiceExtensions
{
public static void AddCacheHubProxy(this IServiceCollection services)
{
services.AddScoped<EventHubProxy>();
services.AddHostedService<EventHubMappingService>();
services.AddScoped<IEventHubMapping<NowPlayingHub, INowPlayingHubClient>, NowPlayingHubMapping>();
services.AddScoped<NowPlayingHubMapping>();
2021-11-29 21:48:00 +00:00
}
}
}