using HubListener.Interfaces; using HubListener.Listeners; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; await Host.CreateDefaultBuilder(args) .ConfigureServices(services => { services.AddScoped(); services.AddHostedService(); }) .Build() .RunAsync();