Exemple #1
0
 /// <summary>
 /// Removes the tenant from the cache.
 /// </summary>
 /// <param name="tenantId">The tenant identifier.</param>
 public void Remove(Guid tenantId)
 {
     lock (_keyLock.Lock(tenantId))
     {
         _dict.TryRemove(tenantId, out _);
         _keyLock.Remove(tenantId);
     }
 }
Exemple #2
0
 /// <summary>
 /// Removes the tenant from the cache.
 /// </summary>
 /// <param name="tenantId">The tenant identifier.</param>
 public void Remove(Guid tenantId)
 {
     lock (_keyLock.Lock(tenantId))
     {
         _dict.TryRemove(tenantId, out CacheValue <TColl> cv);
         _keyLock.Remove(tenantId);
     }
 }