public static void AddTopic(string topic)
 {
     using (var lockKey = Lockkey.GetLock(lockObject, defaultTimeoutInMilliseconds))
     {
         if (!topics.Contains(topic))
         {
             topics.Add(topic);
         }
     }
 }
 public static void CreateClient(CosmosDBAccount cosmosDBAccount)
 {
     using (var lockKey = Lockkey.GetLock(lockObject, defaultTimeoutInMilliseconds))
     {
         if (!cosmosClients.ContainsKey(cosmosDBAccount.Endpoint))
         {
             cosmosClients[cosmosDBAccount.Endpoint] = new CosmosClient(cosmosDBAccount.Endpoint, cosmosDBAccount.AuthKey);
         }
     }
 }