You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
As for me it would be nice to add an ability to configure StructurizrAnnotationsComponentFinderStrategy with an assembly to be able to scan it for attributes. It seem right now current active assembly is supported only.
It seems I found this piece of code in the examples:
string assemblyPath = typeof(StructurizrAnnotations).Assembly.Location;
DefaultAssemblyResolver resolver = new DefaultAssemblyResolver();
resolver.AddSearchDirectory(Path.GetDirectoryName(assemblyPath));
AssemblyDefinition assembly = AssemblyDefinition.ReadAssembly(
assemblyPath,
new ReaderParameters { AssemblyResolver = resolver }
);
ComponentFinder componentFinder = new ComponentFinder(
webApplication,
"Structurizr.Examples.Annotations",
new StructurizrAnnotationsComponentFinderStrategy(assembly)
);
AS for me it would be nice to make it part of the StructurizrAnnotationsComponentFinderStrategy constructor. It will allow us to use it like this:
new StructurizrAnnotationsComponentFinderStrategy(typeof(MyType).Assembly)
The text was updated successfully, but these errors were encountered:
As for me it would be nice to add an ability to configure StructurizrAnnotationsComponentFinderStrategy with an assembly to be able to scan it for attributes. It seem right now current active assembly is supported only.
It seems I found this piece of code in the examples:
AS for me it would be nice to make it part of the StructurizrAnnotationsComponentFinderStrategy constructor. It will allow us to use it like this:
new StructurizrAnnotationsComponentFinderStrategy(typeof(MyType).Assembly)
The text was updated successfully, but these errors were encountered: