Commit before refact factory into service

This commit is contained in:
2024-07-12 19:58:19 +07:00
parent 13e70cbf63
commit 0544749a69
11 changed files with 243 additions and 169 deletions

View File

@@ -1,4 +1,5 @@
using Managing.Domain.Bots;
using Managing.Application.Abstractions;
using Managing.Domain.Bots;
using Managing.Domain.Workflows;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
@@ -12,7 +13,8 @@ namespace Managing.Application.Bots
private readonly IBotService _botService;
private Workflow _workflow;
public SimpleBot(string name, ILogger<TradingBot> logger, Workflow workflow, IBotService botService) : base(name)
public SimpleBot(string name, ILogger<TradingBot> logger, Workflow workflow, IBotService botService) :
base(name)
{
Logger = logger;
_botService = botService;
@@ -51,4 +53,4 @@ namespace Managing.Application.Bots
_workflow = JsonConvert.DeserializeObject<Workflow>(backup.Data);
}
}
}
}