System.Collections.Concurrent.BlockingCollection.Add(MqttBasePacket)

Here are the examples of the csharp api class System.Collections.Concurrent.BlockingCollection.Add(MqttBasePacket) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: MQTTnet
Source File: TestMqttCommunicationAdapter.cs
private void EnqueuePacketInternal(MqttBasePacket packet)
        {
            if (packet == null) throw new ArgumentNullException(nameof(packet));

            _incomingPackets.Add(packet);
        }

2. Example

Project: Wirehome
Source File: MqttCommunicationAdapter.cs
private void SendPacketInternal(MqttBasePacket packet)
        {
            if (packet == null) throw new ArgumentNullException(nameof(packet));

            _incomingPackets.Add(packet);
        }