コード例 #1
0
 public WebsiteAccessPermissionProvider(
     Entity website,
     CacheSupportingCrmEntitySecurityProvider webPageAccessControlSecurityProvider,
     IContentMapProvider contentMapProvider)
     : base(contentMapProvider)
 {
     _webPageAccessControlSecurityProvider = webPageAccessControlSecurityProvider as WebPageAccessControlSecurityProvider;
     _website = website;
 }
        public BlogSecurityProvider(CacheSupportingCrmEntitySecurityProvider webPageSecurityProvider, HttpContext context, string portalName = null)
            : this(context)
        {
            if (webPageSecurityProvider == null)
            {
                throw new ArgumentNullException("webPageSecurityProvider");
            }

            this.WebPageSecurityProvider = webPageSecurityProvider;
            this.PortalName = portalName;
        }