public static Task <FeatureNameValueWithGrantedProvider> GetOrNullWithProviderAsync(this IFeatureManager featureManager, [NotNull] string name, bool fallback = true)
 {
     return(featureManager.GetOrNullWithProviderAsync(name, DefaultValueFeatureValueProvider.ProviderName, null, fallback));
 }
Exemplo n.º 2
0
 public static Task <FeatureNameValueWithGrantedProvider> GetOrNullWithProviderForClientAsync(this IFeatureManager featureManager, [NotNull] string name, string clientId, bool fallback = true)
 {
     return(featureManager.GetOrNullWithProviderAsync(name, ClientFeatureValueProvider.ProviderName, clientId, fallback));
 }
 public static Task <FeatureNameValueWithGrantedProvider> GetOrNullWithProviderForEditionAsync(this IFeatureManager featureManager, [NotNull] string name, Guid editionId, bool fallback = true)
 {
     return(featureManager.GetOrNullWithProviderAsync(name, EditionFeatureValueProvider.ProviderName, editionId.ToString(), fallback));
 }
Exemplo n.º 4
0
 public static Task <FeatureNameValueWithGrantedProvider> GetOrNullWithProviderForUserAsync(this IFeatureManager featureManager, string name, Guid userId, bool fallback = true)
 {
     return(featureManager.GetOrNullWithProviderAsync(name, UserFeatureValueProvider.ProviderName, userId.ToString(), fallback));
 }