Пример #1
0
    /// <summary>
    /// Clear both message queues- used in tests where we don't care about the login messages
    /// </summary>
    public void ClearMessageQueues()
    {
        // Note- With ConcurrentQueues, it is preferrable to discard the previous queue than to attempt to Dequeue all elements in case the queue is currently being written to
        protobufMessageQueue = new ConcurrentQueueWithEvent <ProtoMessage>();

        stringMessageQueue = new ConcurrentQueueWithEvent <string>();
    }
Пример #2
0
 public TextTestClient()
 {
     protobufMessageQueue = new ConcurrentQueueWithEvent <ProtoMessage>();
     stringMessageQueue   = new ConcurrentQueueWithEvent <string>();
 }