public void ParseInstanceElement(XmlElement element) { var pluginTypePath = new TypePath(element.GetAttribute(PLUGIN_TYPE)); _builder.ConfigureFamily(pluginTypePath, family => { InstanceMemento memento = ConfigurationParser.CreateMemento(element); var instance = memento.ToInstance(this, family.PluginType); family.AddInstance(instance); }); }
public void ParseDefaultElement(XmlElement element) { var pluginTypePath = new TypePath(element.GetAttribute(PLUGIN_TYPE)); _builder.ConfigureFamily(pluginTypePath, family => { var scope = findScope(element); family.SetScopeTo(scope); var memento = ConfigurationParser.CreateMemento(element); var instance = memento.ToInstance(this, family.PluginType); family.SetDefault(instance); }); }