// This private method assumes input parameters have been checked
        private static int ResetStatePrivate(PersonalizationScope scope, string[] paths, string[] usernames)
        {
            Initialize();
            int count = _provider.ResetState(scope, paths, usernames);

            PersonalizationProviderHelper.CheckNegativeReturnedInteger(count, "ResetState");
            return(count);
        }
        // This private method assumes input parameters have been checked
        private static int ResetInactiveUserStatePrivate(string path, DateTime userInactiveSinceDate)
        {
            Initialize();
            int count = _provider.ResetUserState(path, userInactiveSinceDate);

            PersonalizationProviderHelper.CheckNegativeReturnedInteger(count, "ResetUserState");
            return(count);
        }
        private static int GetCountOfStatePrivate(PersonalizationScope scope, PersonalizationStateQuery stateQuery)
        {
            Initialize();
            int countOfState = _provider.GetCountOfState(scope, stateQuery);

            PersonalizationProviderHelper.CheckNegativeReturnedInteger(countOfState, "GetCountOfState");
            return(countOfState);
        }