20 lines
601 B
C#
20 lines
601 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Selector.Web.Service;
|
|
using Selector.Web.Hubs;
|
|
using Selector.SignalR;
|
|
|
|
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>();
|
|
}
|
|
}
|
|
}
|