fix: fixed build of projects
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
using JOBot.TClient;
|
||||
using JOBot.Proto;
|
||||
using JOBot.TClient;
|
||||
using JOBot.TClient.Commands;
|
||||
using JOBot.TClient.Core.HostedServices;
|
||||
using JOBot.TClient.Core.Services;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
@@ -11,6 +14,10 @@ var host = Host.CreateDefaultBuilder(args)
|
||||
|
||||
// Фоновый сервис для бота
|
||||
services.AddHostedService<BotBackgroundService>();
|
||||
|
||||
services.AddScoped<StartCommand>();
|
||||
services.AddSingleton<UserService>();
|
||||
services.AddGrpcClient<User.UserClient>(o => o.Address = new Uri("http://backend:5001"));
|
||||
})
|
||||
.Build();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user