Updated documentation
See original GitHub issueFor example:
How is TypesThat
used?
How do we correctly use ExportAssembly
More samples regarding fluent API usage.
For example, I did this:
To register all the Tools in a given assembly as Tool
, so an injection like IEnumerable<Tool>
works I did:
registrationBlock.Export(toolType.Assembly.ExportedTypes
.Where(TypesThat.AreBasedOn<Tool>())
.Where(x => !x.IsAbstract))
.ByTypes(type => new[] { toolType });
Is there a better, simplified way to achieve that?
Another example. Does this look OK?
registrationBlock.ExportAssemblies(Assemblies.AppDomainAssemblies)
.Where(y => typeof(ISection).IsAssignableFrom(y))
.ByInterface<ISection>()
.ByInterface<IBusy>()
.ByType()
.ExportAttributedTypes()
.Lifestyle.Singleton();
BTW: I could collaborate with the docs, but I don’t know how to do it 😥
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Updated Documentation Definition
Updated Documentation means the Improvements in recorded form (such as on paper or on other data carriers). Sample 1. Based on 1 documents....
Read more >How to Update and Maintain Process Documentation
Learn how to update and maintain your process documentation with these six steps. Find out how to collect feedback, implement changes, and monitor...
Read more >8 Tips for Keeping Your Process Documentation Up to Date
8 Tips for Keeping Your Process Documentation Up to Date · React with urgency · Remove the barriers · Use your documents regularly...
Read more >Updating Documentation
Sometimes, more extensive updates are needed. If new features of the application significantly change the way it works, then new sections of the...
Read more >Latest Google Search Documentation Updates
Learn about the latest and most recent Google Search Central documentation updates. Stay current with what's new at Google Search Central.
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 FreeTop 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
Top GitHub Comments
So looking at your examples both look correct. I think ultimately it really comes down to do you like using linq yourself or do you want to have the container do it for you.
Hi José,
I’m out of town today but I’ll reply tomorrow with an in-depth answer