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 OnPingRead(IChannelHandlerContext ctx, long data) { _logger.LogPing(Direction.Inbound, ctx, data); _listener.OnPingRead(ctx, data); }