public Task StartAsync(CancellationToken cancellationToken) { jT808MsgConsumer.Subscribe(); jT808MsgConsumer.OnMessage((Message) => { jT808ReplyMessageHandler.Processor(Message.TerminalNo, Message.Data); }); return(Task.CompletedTask); }
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); }
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); }
public Task StartAsync(CancellationToken cancellationToken) { jT808MsgConsumer.Subscribe(); jT808MsgConsumer.OnMessage(jT808DotNettyReplyMessageService.Processor); return(Task.CompletedTask); }
public Task StartAsync(CancellationToken cancellationToken) { jT808MsgConsumer.Subscribe(); jT808MsgConsumer.OnMessage(jT808TransmitService.Send); return(Task.CompletedTask); }
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); }