예제 #1
0
 public async Task SendPacket(IPacket packet)
 {
     if (_sinks.Any())
     {
         var preparedPacket = await _packetPackager.PreparePacket(packet);
         await SendPacket(preparedPacket.PacketId, preparedPacket.Data.AsImmutable());
     }
 }
예제 #2
0
        public async Task SendPacket(IPacket packet)
        {
            var prepared = await _packetPackager.PreparePacket(packet);

            await SendPacket(prepared.PacketId, prepared.Data.AsImmutable());
        }
예제 #3
0
        public async Task SendPacket(ISerializablePacket packet)
        {
            var package = await _packetPackager.PreparePacket(packet);

            await SendPacket(package.packetId, package.data.AsImmutable());
        }
예제 #4
0
        public async Task SendPacket(ISerializablePacket packet)
        {
            var prepared = _packetPackager.PreparePacket(packet);

            await SendPacket(prepared.packetId, prepared.data);
        }