Add bot worker

This commit is contained in:
2024-06-28 17:26:28 +07:00
parent 7a6d656335
commit d96b2a4c3b
24 changed files with 120 additions and 113 deletions

View File

@@ -107,6 +107,7 @@ public static class ApiBootstrap
services.AddTransient<IStatisticRepository, StatisticRepository>();
services.AddTransient<IWorkflowRepository, WorkflowRepository>();
services.AddTransient<IBotRepository, BotRepository>();
services.AddTransient<IWorkerRepository, WorkerRepository>();
// Cache
services.AddDistributedMemoryCache();
@@ -126,6 +127,7 @@ public static class ApiBootstrap
services.AddSingleton<IMessengerService, MessengerService>();
services.AddSingleton<IDiscordService, DiscordService>();
services.AddSingleton<IBotService, BotService>();
services.AddSingleton<IWorkerService, WorkerService>();
// Stream
services.AddSingleton<IBinanceSocketClient, BinanceSocketClient>();