mirror of https://github.com/abpframework/abp.git
1 changed files with 0 additions and 21 deletions
@ -1,21 +0,0 @@ |
|||||
using System; |
|
||||
using JetBrains.Annotations; |
|
||||
using Volo.Abp.Threading; |
|
||||
|
|
||||
namespace Volo.Abp.MultiTenancy |
|
||||
{ |
|
||||
public static class TenantStoreExtensions |
|
||||
{ |
|
||||
[CanBeNull] |
|
||||
public static TenantConfiguration Find(this ITenantStore tenantStore, string name) |
|
||||
{ |
|
||||
return AsyncHelper.RunSync(() => tenantStore.FindAsync(name)); |
|
||||
} |
|
||||
|
|
||||
[CanBeNull] |
|
||||
public static TenantConfiguration Find(this ITenantStore tenantStore, Guid id) |
|
||||
{ |
|
||||
return AsyncHelper.RunSync(() => tenantStore.FindAsync(id)); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue