Command-line-api: Documentation of use with dependency injection

Created on 1 Apr 2019  路  3Comments  路  Source: dotnet/command-line-api

Does system.commandline support dependency injection via MEDI if so
examples should be documented on the wiki

if not can this be implemented ? seems like an important feature

Most helpful comment

I have the same request. Considering that the integration with GenericHost is closed, was there any progress on the documentation for DI?

All 3 comments

Agreed.

The capability to bind arbitrary values by type is roughed in via the model binding infrastructure (example) but the API isn't exposed well yet.

We're also investigating integration with GenericHost: #440.

I have the same request. Considering that the integration with GenericHost is closed, was there any progress on the documentation for DI?

Hi, I have written a blog post about how you use Dependency Injection, which also includes Aspnet.Core. I hope it helps.

Was this page helpful?
0 / 5 - 0 ratings