コード例 #1
0
 public static void ResetAllFeatures <TTenant, TUser>(this AbpTenantManager <TTenant, TUser> tenantManager, int tenantId)
     where TTenant : AbpTenant <TUser>
     where TUser : AbpUser <TUser>
 {
     AsyncHelper.RunSync(() => tenantManager.ResetAllFeaturesAsync(tenantId));
 }
コード例 #2
0
 public static void SetFeatureValues <TTenant, TUser>(this AbpTenantManager <TTenant, TUser> tenantManager, int tenantId, params NameValue[] values)
     where TTenant : AbpTenant <TUser>
     where TUser : AbpUser <TUser>
 {
     AsyncHelper.RunSync(() => tenantManager.SetFeatureValuesAsync(tenantId, values));
 }
コード例 #3
0
 public static void SetFeatureValue <TTenant, TUser>(this AbpTenantManager <TTenant, TUser> tenantManager, TTenant tenant, string featureName, string value)
     where TTenant : AbpTenant <TUser>
     where TUser : AbpUser <TUser>
 {
     AsyncHelper.RunSync(() => tenantManager.SetFeatureValueAsync(tenant, featureName, value));
 }
コード例 #4
0
 public static IReadOnlyList <NameValue> GetFeatureValues <TTenant, TUser>(this AbpTenantManager <TTenant, TUser> tenantManager, int tenantId)
     where TTenant : AbpTenant <TUser>
     where TUser : AbpUser <TUser>
 {
     return(AsyncHelper.RunSync(() => tenantManager.GetFeatureValuesAsync(tenantId)));
 }
コード例 #5
0
 public static string GetFeatureValueOrNull <TTenant, TUser>(this AbpTenantManager <TTenant, TUser> tenantManager, int tenantId, string featureName)
     where TTenant : AbpTenant <TUser>
     where TUser : AbpUser <TUser>
 {
     return(AsyncHelper.RunSync(() => tenantManager.GetFeatureValueOrNullAsync(tenantId, featureName)));
 }
コード例 #6
0
 public static IdentityResult Delete <TTenant, TUser>(this AbpTenantManager <TTenant, TUser> tenantManager, TTenant tenant)
     where TTenant : AbpTenant <TUser>
     where TUser : AbpUser <TUser>
 {
     return(AsyncHelper.RunSync(() => tenantManager.DeleteAsync(tenant)));
 }
コード例 #7
0
 public static TTenant FindByTenancyName <TTenant, TUser>(this AbpTenantManager <TTenant, TUser> tenantManager, string tenancyName)
     where TTenant : AbpTenant <TUser>
     where TUser : AbpUser <TUser>
 {
     return(AsyncHelper.RunSync(() => tenantManager.FindByTenancyNameAsync(tenancyName)));
 }
コード例 #8
0
 public static TTenant GetById <TTenant, TUser>(this AbpTenantManager <TTenant, TUser> tenantManager, int id)
     where TTenant : AbpTenant <TUser>
     where TUser : AbpUser <TUser>
 {
     return(AsyncHelper.RunSync(() => tenantManager.GetByIdAsync(id)));
 }