コード例 #1
0
        public static IList <ChangeNotificationData> NotifyChanges(Task task, IConfigurationSession configurationSession, UnifiedPolicyStorageBase policyStorageObject, ExecutionLog logger, Type client, IEnumerable <UnifiedPolicyStorageBase> bindingStorageObjects = null, IEnumerable <UnifiedPolicyStorageBase> ruleStorageObjects = null)
        {
            ArgumentValidator.ThrowIfNull("task", task);
            ArgumentValidator.ThrowIfNull("configurationSession", configurationSession);
            ArgumentValidator.ThrowIfNull("policyStorageObject", policyStorageObject);
            if (!ExPolicyConfigProvider.IsFFOOnline)
            {
                return(new List <ChangeNotificationData>());
            }
            List <UnifiedPolicyStorageBase> list = new List <UnifiedPolicyStorageBase>
            {
                policyStorageObject
            };

            if (bindingStorageObjects != null)
            {
                list.AddRange(bindingStorageObjects);
            }
            if (ruleStorageObjects != null)
            {
                list.AddRange(ruleStorageObjects);
            }
            Dictionary <Workload, List <ChangeNotificationData> > dictionary = AggregatedNotificationClients.NotifyChanges(task, configurationSession, list, logger, client);
            List <ChangeNotificationData> list2 = new List <ChangeNotificationData>();

            foreach (KeyValuePair <Workload, List <ChangeNotificationData> > keyValuePair in dictionary)
            {
                list2.AddRange(keyValuePair.Value);
            }
            return(list2);
        }
コード例 #2
0
 protected virtual IEnumerable <ChangeNotificationData> OnNotifyChanges()
 {
     return(AggregatedNotificationClients.NotifyChanges(this, base.DataSession as IConfigurationSession, base.DataObject, this.executionLogger, base.GetType(), null, null));
 }
コード例 #3
0
 protected virtual IEnumerable <ChangeNotificationData> OnNotifyChanges(IEnumerable <UnifiedPolicyStorageBase> bindingStorageObjects, IEnumerable <UnifiedPolicyStorageBase> ruleStorageObjects)
 {
     return(AggregatedNotificationClients.NotifyChanges(this, (IConfigurationSession)base.DataSession, base.DataObject, this.executionLogger, base.GetType(), bindingStorageObjects, ruleStorageObjects));
 }
コード例 #4
0
 protected virtual IEnumerable <ChangeNotificationData> OnNotifyChanges()
 {
     return(AggregatedNotificationClients.NotifyChanges(this, (IConfigurationSession)base.DataSession, this.DataObject, this.executionLogger, base.GetType(), this.PsPolicyPresentationObject.StorageBindings, null));
 }