How to register an instance to the ServiceCollection in ASP.NET Core 1.0 RC2 How to register an instance to the ServiceCollection in ASP.NET Core 1.0 RC2 asp.net asp.net

How to register an instance to the ServiceCollection in ASP.NET Core 1.0 RC2


try this:

services.AddSingleton<IConfiguration>(Configuration);

I had same problem like you and I solved it with this.