public static bool IsEnabled(
            this IFeatureFlagClient client,
            string flight,
            User user,
            bool defaultValue)
        {
            if (user == null)
            {
                throw new ArgumentNullException(nameof(user));
            }

            return(client.IsEnabled(flight, new FlightUser(user), defaultValue));
        }
Esempio n. 2
0
        public static bool IsEnabled(
            this IFeatureFlagClient client,
            string flight,
            User user,
            bool defaultValue)
        {
            // The user object is null if the user isn't logged in.
            var flightUser = (user != null)
                ? new FlightUser(user)
                : null;

            return(client.IsEnabled(flight, flightUser, defaultValue));
        }
 public bool IsTyposquattingEnabled()
 {
     return(_client.IsEnabled(TyposquattingFeatureName, defaultValue: false));
 }
 public bool IsAsyncAccountDeleteEnabled()
 {
     return(_client.IsEnabled(AsyncAccountDeleteFeatureName, defaultValue: false));
 }
Esempio n. 5
0
 public bool IsAlternateStatisticsSourceEnabled()
 {
     return(_client.IsEnabled(AlternateStatisticsSourceFeatureName, defaultValue: false));
 }
Esempio n. 6
0
 public bool IsQueueBackEnabled()
 {
     return(_featureFlagClient.IsEnabled(ValidationPrefix + "QueueBack", defaultValue: false));
 }
Esempio n. 7
0
 public bool IsPopularityTransferEnabled()
 {
     return(_featureFlagClient.IsEnabled(SearchPrefix + "TransferPopularity", defaultValue: true));
 }