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; }
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); }