コード例 #1
0
        protected virtual bool CalculateCompositeSessionDataEnabled()
        {
            bool result = false;

            if (this.IsAppCacheEnabledClient && !this.IsClientInOfflineMode && !DefaultPageBase.IsRecoveryBoot(this.Context))
            {
                UserContext userContext = UserContextManager.GetUserContext(this.Context);
                result = (userContext != null && userContext.FeaturesManager != null && userContext.FeaturesManager.ServerSettings.OwaCompositeSessionData.Enabled);
            }
            return(result);
        }