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); }
protected virtual IEnumerable <ChangeNotificationData> OnNotifyChanges() { return(AggregatedNotificationClients.NotifyChanges(this, base.DataSession as IConfigurationSession, base.DataObject, this.executionLogger, base.GetType(), null, null)); }
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)); }
protected virtual IEnumerable <ChangeNotificationData> OnNotifyChanges() { return(AggregatedNotificationClients.NotifyChanges(this, (IConfigurationSession)base.DataSession, this.DataObject, this.executionLogger, base.GetType(), this.PsPolicyPresentationObject.StorageBindings, null)); }