Add a MEF catalog using this loader
See original GitHub issueImplement ComposablePartCatalog
using the assembly load context loader.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
c# - Adding assemblies to catalog using MEF
I'm trying to AddParts to catalog which are referenced at design time without adding them explicitly in code and then add additional parts...
Read more >Managed Extensibility Framework (MEF) - .NET Framework
MEF provides catalogs to discover parts from a provided type, an assembly, or a directory. Application developers can easily create new catalogs ......
Read more >The Simplest Way to use MEF Fully Lazy DLL Loading
Catalogs.Add(directoryCatalog); //Create the CompositionContainer with the parts in the catalog CompositionContainer container = new ...
Read more >Managed Extensibility Framework - Building Composable ...
To bootstrap MEF involves a few steps: Add imports of the contracts you need the container to create. Create a catalog that MEF...
Read more >Addicted To MEF - Part 2
In this code we are declaring two part catalogs in an array. One is an “AttributedAssemblyPartCatalog” which will allow us to gather up...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This looks great! The PluginCatalog class is pretty much exactly what I was hoping to create.
I think a sample is a good place to begin. The code itself isn’t all that big, so I’m not sure it needs to be its own package yet.
It might be good to also create a minimal sample. For .NET devs unfamiliar with aspnetcore, the aspnet sample may be a bit heavy. The important piece is the PluginCatalog.
If you’re volunteering to write a sample and contribute, I’d be happy to review and accept it. Otherwise, this will stay closed because I’m not planning to take action on this.