using JiShe.CollectBus.Protocol.Interfaces; using Microsoft.Extensions.Logging; namespace JiShe.CollectBus.Protocol.T37612012.Appendix { /// /// Appendix_02800002 /// public class Appendix_02800002 : IAnalysisStrategy> { private readonly ILogger _logger; public Appendix_02800002(ILogger logger) { _logger = logger; } public Task ExecuteAsync(List data, Action? result = null) { try { if (data.Count != 2) return null; var value = string.Join(".", data); var values= new List() { "电网频率", "10_97", "1", value }; result?.Invoke(values); return Task.FromResult(true); } catch (Exception ex) { _logger.LogError(ex, $"Appendix_02800002解析失败:{ex.Message}"); return Task.FromResult(false); } } } }