Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Configure should be called using the services defined in ConfigureServices #114

Closed
halter73 opened this issue Nov 13, 2014 · 1 comment
Closed

Comments

@halter73
Copy link
Member

Currently, services injected into Startup.Configure come from the hosting service provider.

Since Startup.ConfigureServices is called before Configure and IApplicationBuilder.ApplicationServices is already defined by the time Configure is called, it would be nice if services defined in ConfigureServices could be injected into the Configure method.

@borgdylan
Copy link

I agree, like that if I one uses the ASP.NET 5 Options Fx to inject an IOptions into DI, the optiosn would be available in configure. This current requires building an IServiceProvider and resolving manually.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants