question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updated documentation

See original GitHub issue

For 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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ipjohnsoncommented, Oct 23, 2019

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.

2reactions
ipjohnsoncommented, Oct 19, 2019

Hi José,

I’m out of town today but I’ll reply tomorrow with an in-depth answer

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found