public async Task SendPacket(IPacket packet) { if (_sinks.Any()) { var preparedPacket = await _packetPackager.PreparePacket(packet); await SendPacket(preparedPacket.PacketId, preparedPacket.Data.AsImmutable()); } }
public async Task SendPacket(IPacket packet) { var prepared = await _packetPackager.PreparePacket(packet); await SendPacket(prepared.PacketId, prepared.Data.AsImmutable()); }
public async Task SendPacket(ISerializablePacket packet) { var package = await _packetPackager.PreparePacket(packet); await SendPacket(package.packetId, package.data.AsImmutable()); }
public async Task SendPacket(ISerializablePacket packet) { var prepared = _packetPackager.PreparePacket(packet); await SendPacket(prepared.packetId, prepared.data); }