Using ` Microsoft.Extensions.DependencyInjection` in a library
I'm currently writing a wrapper around a REST API and would like to use Microsoft's DI library (normally I just use constructor injection) but I'm a bit confused as to how to do so. I've created a
However, I'm not sure what I need to do next. Do I then use this somehow in
ServiceCollectionExtensions class and registered the services that I need:However, I'm not sure what I need to do next. Do I then use this somehow in
Program.cs of an example project which uses the library?