private PipelineGraph(ProfileManager profileManager, GenericsPluginGraph genericsGraph, GraphLog log) { _profileManager = profileManager; _genericsGraph = genericsGraph; _log = log; _transientCache = new MainObjectCache(); }
public static ConfigurationParser[] GetParsers(XmlNode node, GraphLog log) { var builder = new ConfigurationParserBuilder(log); builder.IncludeNode(node, String.Empty); builder.IgnoreDefaultFile = true; return(builder.GetParsers()); }
// Only used in testing public static PluginGraph BuildFromXml(XmlDocument document) { var log = new GraphLog(); ConfigurationParser[] parsers = ConfigurationParserBuilder.GetParsers(document.DocumentElement, log); var builder = new PluginGraphBuilder(parsers, new Registry[0], log); return(builder.Build()); }
public void ForEachFile(GraphLog log, Action <string> action) { string includePath = getIncludePath(); // Find the text in every child node of _structureMapNode and // perform an action with that text _structureMapNode.ForTextInChild("Include/@File").Do(fileName => { string includedFile = Path.Combine(includePath, fileName); action(includedFile); }); }
public PipelineGraph(PluginGraph graph) { _transientCache = new NulloObjectCache(); _profileManager = graph.ProfileManager; _log = graph.Log; graph.PluginFamilies.Where(x => x.IsGenericTemplate).Each(_genericsGraph.AddFamily); graph.PluginFamilies.Where(x => !x.IsGenericTemplate).Each(family => { var factory = new InstanceFactory(family); _factories.Add(family.PluginType, factory); }); }
private void setProfileDefaults(GraphLog log) { if (string.IsNullOrEmpty(_defaultProfileName)) { return; } if (!_profiles.ContainsKey(_defaultProfileName)) { log.RegisterError(280, _defaultProfileName); } Profile profile = getProfile(_defaultProfileName); profile.FillAllTypesInto(_default); }
public ConfigurationParserBuilder(GraphLog log) { _log = log; }
Instance IDiagnosticInstance.FindInstanceForProfile(PluginFamily family, string profileName, GraphLog log) { return(findMasterInstance(family, profileName, log)); }
protected virtual Instance findMasterInstance(PluginFamily family, string profileName, GraphLog log) { return(this); }
protected override Instance findMasterInstance(PluginFamily family, string profileName, GraphLog log) { Instance instance = family.GetInstance(_referenceKey); if (instance == null) { log.RegisterError(196, ReferenceKey, family.PluginType, profileName); } return(instance); }
public PluginGraphBuilder(ConfigurationParser[] parsers, Registry[] registries, GraphLog log) { _parsers = parsers; _registries = registries; _graph = new PluginGraph(); _graph.Log = log; }
public void SetUp() { _log = new GraphLog(); builder = new ConfigurationParserBuilder(_log); DataMother.BackupStructureMapConfig(); }