private void writeOverrides(XmlElement parentElement, WriteOverride function, string profileName) { parentElement.ForEachChild(OVERRIDE).Do(element => processOverrideElement(function, element, profileName)); }
private void attachInstances(PluginFamily family, XmlElement familyElement, IGraphBuilder builder) { familyElement.ForEachChild(INSTANCE_NODE).Do(element => { InstanceMemento memento = _mementoCreator.CreateMemento(element); family.AddInstance(memento); }); }
private void attachInterceptors(PluginFamily family, XmlElement familyElement) { string contextBase = string.Format("creating an InstanceInterceptor for {0}\n", family.PluginType.AssemblyQualifiedName); familyElement.ForEachChild("*/Interceptor").Do(element => { var interceptorMemento = new XmlAttributeInstanceMemento(element); string context = contextBase + element.OuterXml; _builder.WithSystemObject<ILifecycle>( interceptorMemento, context, lifecycle => family.SetScopeTo(lifecycle)); }); }
private void attachPlugins(PluginFamily family, XmlElement familyElement) { familyElement.ForEachChild(PLUGIN_NODE).Do(element => attachPlugin(element, family)); }