Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

23 lignes
727 B

  1. using JT808.Gateway.MsgLogging;
  2. using JT808.Protocol.Extensions;
  3. using Microsoft.Extensions.Logging;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Text;
  7. namespace JT808.Gateway.SimpleServer.Impl
  8. {
  9. public class JT808MsgLogging : IJT808MsgLogging
  10. {
  11. private readonly ILogger Logger;
  12. public JT808MsgLogging(ILoggerFactory loggerFactory)
  13. {
  14. Logger = loggerFactory.CreateLogger("JT808MsgLogging");
  15. }
  16. public void Processor((string TerminalNo, byte[] Data) parameter, JT808MsgLoggingType jT808MsgLoggingType)
  17. {
  18. Logger.LogDebug($"{jT808MsgLoggingType.ToString()}-{parameter.TerminalNo}-{parameter.Data.ToHexString()}");
  19. }
  20. }
  21. }