コード例 #1
0
        private void SaveDlpPolicy(ADComplianceProgram instance)
        {
            bool flag = MessagingPoliciesSyncLogDataSession.IsNameNewOrChangedForTenantScopedObject(instance);

            this.dataSession.Save(instance);
            if (flag)
            {
                ADComplianceProgram dlpPolicyByName = DlpUtils.GetDlpPolicyByName(this.dataSession, this.policiesCollectionName, instance.Name);
                Guid value;
                if (this.GetExternalDirectoryOrganizationIdToLog(dlpPolicyByName, out value))
                {
                    TenantSettingSyncLogGenerator.Instance.LogChangesForSave(dlpPolicyByName, new Guid?(value), new Guid?(dlpPolicyByName.ImmutableId), null);
                }
            }
        }