public void SetConnectionStringUserProfileDependencyOrThrow()
        {
            Exception exceptionToThrow = null;

            using (this.UpdateUserProfileLocation(UserProfileState.InQuery))
            {
                UserProfileState newState = this.m_hasUserProfileState | this.m_location;
                if ((this.m_allowUserProfileState & UserProfileState.InQuery) == UserProfileState.None)
                {
                    exceptionToThrow = new ReportProcessingException_UserProfilesDependencies();
                }
                this.UpdateOverallUserProfileState(exceptionToThrow, newState);
            }
        }
示例#2
0
        internal void SetConnectionStringUserProfileDependencyOrThrow()
        {
            Exception exceptionToThrow = null;

            using (UpdateUserProfileLocation(UserProfileState.InQuery))
            {
                UserProfileState newState = m_hasUserProfileState | m_location;
                if ((m_allowUserProfileState & UserProfileState.InQuery) == 0)
                {
                    exceptionToThrow = new ReportProcessingException_UserProfilesDependencies();
                }
                UpdateOverallUserProfileState(exceptionToThrow, newState);
            }
        }
        private void UpdateUserProfileState()
        {
            Exception        exceptionToThrow = null;
            UserProfileState userProfileState = this.m_hasUserProfileState | this.m_location;

            if (this.m_indirectQueryReference)
            {
                userProfileState |= UserProfileState.InQuery;
                if ((this.m_allowUserProfileState & UserProfileState.InQuery) == UserProfileState.None)
                {
                    exceptionToThrow = new ReportProcessingException_UserProfilesDependencies();
                }
            }
            if (this.m_location != UserProfileState.OnDemandExpressions && (this.m_allowUserProfileState & this.m_location) == UserProfileState.None)
            {
                exceptionToThrow = new ReportProcessingException_UserProfilesDependencies();
            }
            this.UpdateOverallUserProfileState(exceptionToThrow, userProfileState);
        }