Browse Source
Merge pull request #492 from colinin/remove-duplicate-using
fix(multitenancy): remove unnecessary using blocks
pull/497/head
yx lin
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
6 deletions
-
aspnet-core/modules/tenants/LINGYUN.Abp.MultiTenancy.RemoteService/LINGYUN/Abp/MultiTenancy/RemoteService/EventBus/Distributed/TenantSynchronizer.cs
|
|
|
@ -85,13 +85,10 @@ public class TenantSynchronizer : |
|
|
|
{ |
|
|
|
using (_currentTenant.Change(null)) |
|
|
|
{ |
|
|
|
using (_currentTenant.Change(null)) |
|
|
|
await _cache.RemoveAsync(TenantConfigurationCacheItem.CalculateCacheKey(tenantId.ToString())); |
|
|
|
if (!tenantName.IsNullOrWhiteSpace()) |
|
|
|
{ |
|
|
|
await _cache.RemoveAsync(TenantConfigurationCacheItem.CalculateCacheKey(tenantId.ToString())); |
|
|
|
if (!tenantName.IsNullOrWhiteSpace()) |
|
|
|
{ |
|
|
|
await _cache.RemoveAsync(TenantConfigurationCacheItem.CalculateCacheKey(tenantName)); |
|
|
|
} |
|
|
|
await _cache.RemoveAsync(TenantConfigurationCacheItem.CalculateCacheKey(tenantName)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|