I have a service I wrote that helps with configuration. The service is set up in the Startup class's ConfigureServices method as:
public void ConfigureServices(IServiceCollection services)
{
...
services.AddScoped<IMyService, MyService>();
...
}
I need to then get an instance of IMyService in the Startup class's Configure method. How do I do that?