public Task StartAsync(CancellationToken cancellationToken)
 {
     jT808MsgConsumer.Subscribe();
     jT808MsgConsumer.OnMessage((Message) => {
         jT808ReplyMessageHandler.Processor(Message.TerminalNo, Message.Data);
     });
     return(Task.CompletedTask);
 }
예제 #2
0
 public Task StartAsync(CancellationToken cancellationToken)
 {
     jT808MsgConsumer.Subscribe();
     jT808MsgConsumer.OnMessage((item) => {
         string str = item.Data.ToHexString();
         jT808DotNettyTrafficService.Processor(item.TerminalNo, item.Data.Length);
     });
     return(Task.CompletedTask);
 }
 public Task StartAsync(CancellationToken cancellationToken)
 {
     jT808MsgConsumer.Subscribe();
     jT808MsgConsumer.OnMessage(item =>
     {
         jT808MsgLogging.Processor(item, JT808MsgLoggingType.up);
     });
     return(Task.CompletedTask);
 }
예제 #4
0
 public Task StartAsync(CancellationToken cancellationToken)
 {
     jT808MsgConsumer.Subscribe();
     jT808MsgConsumer.OnMessage((item) => {
         //string str = item.Data.ToHexString();
         jT808Traffic.Increment(item.TerminalNo, DateTime.Now.ToString("yyyyMMdd"), item.Data.Length);
     });
     return(Task.CompletedTask);
 }
 public Task StartAsync(CancellationToken cancellationToken)
 {
     jT808MsgConsumer.Subscribe();
     jT808MsgConsumer.OnMessage(async(Message) =>
     {
         try
         {
             var data = jT808ReplyMessageHandler.Processor(Message.TerminalNo, Message.Data);
             if (data != null)
             {
                 await jT808MsgReplyProducer.ProduceAsync(Message.TerminalNo, data);
             }
         }
         catch (System.Exception ex)
         {
             logger.LogError(ex, "");
         }
     });
     return(Task.CompletedTask);
 }
예제 #6
0
 public Task StartAsync(CancellationToken cancellationToken)
 {
     jT808MsgConsumer.Subscribe();
     jT808MsgConsumer.OnMessage(jT808DotNettyReplyMessageService.Processor);
     return(Task.CompletedTask);
 }
예제 #7
0
 public Task StartAsync(CancellationToken cancellationToken)
 {
     jT808MsgConsumer.Subscribe();
     jT808MsgConsumer.OnMessage(jT808TransmitService.Send);
     return(Task.CompletedTask);
 }
예제 #8
0
 public Task StartAsync(CancellationToken cancellationToken)
 {
     jT808MsgConsumer.Subscribe();
     jT808MsgConsumer.OnMessage((Msg) => jT808MsgIdHandler.Processor(Msg.TerminalNo, Msg.Data));
     return(Task.CompletedTask);
 }
 public Task StartAsync(CancellationToken cancellationToken)
 {
     jT808MsgConsumer.Subscribe();
     jT808MsgConsumer.OnMessage(jT808MsgIdHandler.Processor);
     return(Task.CompletedTask);
 }