Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of date? #4

Closed
efficiondave opened this issue Apr 7, 2020 · 1 comment
Closed

Out of date? #4

efficiondave opened this issue Apr 7, 2020 · 1 comment

Comments

@efficiondave
Copy link

I love samples like this but it seems like this is now out of date as I'm not seeing other code that is using the same Startup ConfigureServices approach. Is there a more up to date sample I should be looking at?

@SkyeHoefling
Copy link
Owner

If you are trying to use Dependency Injection in DNN the Startup.cs class that inherits from IDnnStartup is the way to do it.

public class Startup : IDnnStartup
{
    public void ConfigureServices(IServiceCollection services)
    {
        // register services here
    }
}

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

No branches or pull requests

2 participants