using Microsoft.Extensions.Logging; namespace PARR.EsppTemplateSync.Services { internal class ParserService : IParserService { private readonly ILogger logger; public ParserService(ILogger logger) { this.logger = logger; } public async Task ParseFileAsync(string path) { //TODO: bool isSuccess = true; return isSuccess; } public async Task 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; return isSuccess; } } }