private void writeOverrides(XmlElement parentElement, WriteOverride function, string profileName)
 {
     parentElement.ForEachChild(OVERRIDE).Do(element => processOverrideElement(function, element, profileName));
 }
Beispiel #2
0
 private void attachInstances(PluginFamily family, XmlElement familyElement, IGraphBuilder builder)
 {
     familyElement.ForEachChild(INSTANCE_NODE).Do(element =>
     {
         InstanceMemento memento = _mementoCreator.CreateMemento(element);
         family.AddInstance(memento);
     });
 }
Beispiel #3
0
        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));
            });
        }
Beispiel #4
0
 private void attachPlugins(PluginFamily family, XmlElement familyElement)
 {
     familyElement.ForEachChild(PLUGIN_NODE).Do(element => attachPlugin(element, family));
 }