public IAzureQueueClient Create(string queueName, bool checkIfExists = false)
        {
            InMemoryQueueClient client;

            lock (syncLock)
            {
                if (clients.ContainsKey(queueName))
                {
                    client = clients[queueName];
                }
                else
                {
                    client = new InMemoryQueueClient();

                    clients.Add(queueName, client);
                }
            }

            return client;
        }
Beispiel #2
0
        public IAzureQueueClient Create(string queueName, bool checkIfExists = false)
        {
            InMemoryQueueClient client;

            lock (syncLock)
            {
                if (clients.ContainsKey(queueName))
                {
                    client = clients[queueName];
                }
                else
                {
                    client = new InMemoryQueueClient();

                    clients.Add(queueName, client);
                }
            }

            return(client);
        }