コード例 #1
0
ファイル: SitePolicyManager.cs プロジェクト: Calisto1980/PnP
 public void Run(ClientContext tenantClientContext, SiteInformation site, bool suppressEmail)
 {
     if (site == null)
         throw new ArgumentNullException("site");
     if (site.IsSkipGovernance)
         return;
     RunGovernancePolicy(site);
     var executor = new GovernanceWorkflowExecutor(tenantClientContext);
     executor.Enforce(site, suppressEmail);
 }
コード例 #2
0
        public void Run(ClientContext tenantClientContext, SiteInformation site, bool suppressEmail)
        {
            if (site == null)
            {
                throw new ArgumentNullException("site");
            }
            if (site.IsSkipGovernance)
            {
                return;
            }
            RunGovernancePolicy(site);
            var executor = new GovernanceWorkflowExecutor(tenantClientContext);

            executor.Enforce(site, suppressEmail);
        }