Add Genetic workers
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Discord.Commands;
|
||||
using Discord.WebSocket;
|
||||
using FluentValidation;
|
||||
using Managing.Application;
|
||||
using Managing.Application.Abstractions;
|
||||
using Managing.Application.Abstractions.Repositories;
|
||||
using Managing.Application.Abstractions.Services;
|
||||
@@ -77,6 +78,7 @@ public static class ApiBootstrap
|
||||
services.AddSingleton<IUserService, UserService>();
|
||||
services.AddSingleton<IWorkflowService, WorkflowService>();
|
||||
services.AddSingleton<IFlowFactory, FlowFactory>();
|
||||
services.AddSingleton<IGeneticService, GeneticService>();
|
||||
services.AddTransient<ICommandHandler<OpenPositionRequest, Position>, OpenPositionCommandHandler>();
|
||||
services.AddTransient<ICommandHandler<ClosePositionCommand, Position>, ClosePositionCommandHandler>();
|
||||
|
||||
@@ -128,6 +130,7 @@ public static class ApiBootstrap
|
||||
services.AddTransient<ICandleRepository, CandleRepository>();
|
||||
services.AddTransient<IAccountRepository, AccountRepository>();
|
||||
services.AddTransient<IBacktestRepository, BacktestRepository>();
|
||||
services.AddTransient<IGeneticRepository, GeneticRepository>();
|
||||
services.AddTransient<ITradingRepository, TradingRepository>();
|
||||
services.AddTransient<ISettingsRepository, SettingsRepository>();
|
||||
services.AddTransient<IUserRepository, UserRepository>();
|
||||
|
||||
Reference in New Issue
Block a user