.net core

Skip to first unread message

William Behning

Oct 30, 2017, 12:23:55 PM10/30/17
to ninject
Has anyone successfully used Ninject with an ASP.Net Core application?  I have used Ninject in several MVC applications, but am struggling with replacing the ASP.net Core DI with Ninject.

Any help would be appreciated.

Omri Yair

Nov 15, 2017, 9:57:48 AM11/15/17
to ninject
joining the question, as far as I understand you should change the startup.cs like so:

public IServiceProvider ConfigureServices(IServiceCollection services)

                var kernel = new StandardKernel(new ScopeModule());

            return kernel;

but from here on, i am still getting errors.

בתאריך יום שני, 30 באוקטובר 2017 בשעה 18:23:55 UTC+2, מאת William Behning:
Reply all
Reply to author
0 new messages