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)); }
public void OnPingAckRead(IChannelHandlerContext ctx, long data) { _logger.LogPingAck(Direction.Inbound, ctx, data); _listener.OnPingAckRead(ctx, data); }