Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 2
    You can probably do it via reflection or something else. It might be overkill, but what I've done in certain scenarios where performance is not a major concern is to just create my ServiceCollection and ServiceProvider and just use the extension methods provided. Commented Jan 25, 2019 at 21:58
  • Thanks, I also tried with DI but it seems like there's something missing. I updated my question Commented Jan 25, 2019 at 22:10