worker чтение ESPPTemplates переведено на очередь MQ
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
namespace PARR.EsppTemplateSync.Services
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace PARR.EsppTemplateSync.Services
|
||||
{
|
||||
internal class ParserService : IParserService
|
||||
{
|
||||
private readonly ILogger<ParserService> logger;
|
||||
|
||||
public ParserService(ILogger<ParserService> logger)
|
||||
{
|
||||
this.logger = logger;
|
||||
}
|
||||
public async Task<bool> ParseFileAsync(string path)
|
||||
{
|
||||
//TODO:
|
||||
@@ -15,6 +23,10 @@
|
||||
public async Task<bool> ParseStringAsync(string str)
|
||||
{
|
||||
//TODO:
|
||||
var splittedContent = str.Split(";");
|
||||
var ek = splittedContent[0].Trim().Substring(1, splittedContent[0].Length - 2);
|
||||
var isActive = splittedContent[1].Trim().Substring(1, splittedContent[1].Length - 2);
|
||||
logger.LogInformation($"Получено сообщение: {ek}");
|
||||
|
||||
bool isSuccess = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user