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); }
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); }