// Token: 0x0600305A RID: 12378 RVA: 0x0011B290 File Offset: 0x00119490 // Note: this type is marked as 'beforefieldinit'. static PolicyProvider() { PolicyProvider policyProvider = new PolicyProvider(); policyProvider.PolicyType = "DeletePolicy"; policyProvider.GetPolicies = ((MailboxSession mailboxSession) => mailboxSession.GetPolicyTagList(RetentionActionType.DeleteAndAllowRecovery)); policyProvider.GetPolicyTagFromFolder = new PolicyProvider.GetPolicyTagFromFolderDelegate(PolicyTagHelper.GetPolicyTagForDeleteFromFolder); policyProvider.GetPolicyTagFromItem = new PolicyProvider.GetPolicyTagFromItemDelegate(PolicyTagHelper.GetPolicyTagForDeleteFromItem); policyProvider.SetPolicyTagOnFolder = new PolicyProvider.SetPolicyTagOnFolderDelegate(PolicyTagHelper.SetPolicyTagForDeleteOnFolder); policyProvider.SetPolicyTagOnItem = new PolicyProvider.SetPolicyTagOnItemDelegate(PolicyTagHelper.SetPolicyTagForDeleteOnItem); policyProvider.ClearPolicyTagOnFolder = new PolicyProvider.ClearPolicyTagOnFolderDelegate(PolicyTagHelper.ClearPolicyTagForDeleteOnFolder); policyProvider.ClearPolicyTagOnItem = new PolicyProvider.ClearPolicyTagOnItemDelegate(PolicyTagHelper.ClearPolicyTagForDeleteOnItem); policyProvider.PolicyProperties = PolicyTagHelper.RetentionProperties; PolicyProvider.DeletePolicyProvider = policyProvider; PolicyProvider policyProvider2 = new PolicyProvider(); policyProvider2.PolicyType = "MovePolicy"; policyProvider2.GetPolicies = ((MailboxSession mailboxSession) => mailboxSession.GetPolicyTagList(RetentionActionType.MoveToArchive)); policyProvider2.GetPolicyTagFromFolder = new PolicyProvider.GetPolicyTagFromFolderDelegate(PolicyTagHelper.GetPolicyTagForArchiveFromFolder); policyProvider2.GetPolicyTagFromItem = delegate(StoreObject item, out bool isExplicit, out DateTime? moveToArchive) { bool flag; return(PolicyTagHelper.GetPolicyTagForArchiveFromItem(item, out isExplicit, out flag, out moveToArchive)); }; policyProvider2.SetPolicyTagOnFolder = new PolicyProvider.SetPolicyTagOnFolderDelegate(PolicyTagHelper.SetPolicyTagForArchiveOnFolder); policyProvider2.SetPolicyTagOnItem = new PolicyProvider.SetPolicyTagOnItemDelegate(PolicyTagHelper.SetPolicyTagForArchiveOnItem); policyProvider2.ClearPolicyTagOnFolder = new PolicyProvider.ClearPolicyTagOnFolderDelegate(PolicyTagHelper.ClearPolicyTagForArchiveOnFolder); policyProvider2.ClearPolicyTagOnItem = new PolicyProvider.ClearPolicyTagOnItemDelegate(PolicyTagHelper.ClearPolicyTagForArchiveOnItem); policyProvider2.PolicyProperties = PolicyTagHelper.ArchiveProperties; PolicyProvider.MovePolicyProvider = policyProvider2; }
// Token: 0x06002D23 RID: 11555 RVA: 0x000FDAC7 File Offset: 0x000FBCC7 protected PolicyEventHandlerBase(PolicyProvider policyProvider) { this.policyProvider = policyProvider; }