Example #1
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);
 }
Example #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);
        }