13 lines
356 B
C#
13 lines
356 B
C#
using HubListener.Interfaces;
|
|
using HubListener.Listeners;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
await Host.CreateDefaultBuilder(args)
|
|
.ConfigureServices(services =>
|
|
{
|
|
services.AddScoped<IChatListener, ChatListener>();
|
|
services.AddHostedService<HubListener.ChatService>();
|
|
})
|
|
.Build()
|
|
.RunAsync(); |