/// <summary> /// Loads the <see cref="BoundedContextConfiguration"/> from file and uses it to build the <see cref="BoundedContextConfiguration"/> using the <see cref="TopologyBuilder"/> /// </summary> /// <param name="types">The discovered artifact types from the bounded context's assemblies</param> /// <param name="configuration"></param> public Applications.Configuration.Topology Build(Type[] types, BuildTaskConfiguration configuration) { var topology = _configurationManager.Load(); var boundedContextTopology = new BoundedContextTopology(topology, configuration.UseModules, configuration.NamespaceSegmentsToStrip); return(new TopologyBuilder(types, boundedContextTopology, _buildMessages).Build()); }
/// <summary> /// Loads the <see cref="BoundedContextConfiguration"/> from file and uses it to build the <see cref="BoundedContextConfiguration"/> using the <see cref="TopologyBuilder"/> /// </summary> /// <param name="types">The discovered artifact types from the bounded context's assemblies</param> /// <param name="parsingResults"></param> public Applications.Configuration.Topology Build(Type[] types, ArgumentsParsingResult parsingResults) { var topology = _configurationManager.Load(); var boundedContextTopology = new BoundedContextTopology(topology, parsingResults.UseModules, parsingResults.NamespaceSegmentsToStrip); return(new TopologyBuilder(types, boundedContextTopology, _logger).Build()); }