Exemplo n.º 1
0
 public Task WritePingAsync(IChannelHandlerContext ctx, bool ack, long data, IPromise promise)
 {
     if (ack)
     {
         _logger.LogPingAck(Direction.Outbound, ctx, data);
     }
     else
     {
         _logger.LogPing(Direction.Outbound, ctx, data);
     }
     return(_writer.WritePingAsync(ctx, ack, data, promise));
 }
Exemplo n.º 2
0
 public void OnPingRead(IChannelHandlerContext ctx, long data)
 {
     _logger.LogPing(Direction.Inbound, ctx, data);
     _listener.OnPingRead(ctx, data);
 }