<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dependency Injection on CodingBlast</title><link>https://codingblast.com/tags/dependency-injection/</link><description>Recent content in Dependency Injection on CodingBlast</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 18 Jan 2020 12:24:29 +0000</lastBuildDate><atom:link href="https://codingblast.com/tags/dependency-injection/index.xml" rel="self" type="application/rss+xml"/><item><title>ASP.NET Core Dependency Injection - Cannot consume scoped service</title><link>https://codingblast.com/asp-net-core-dependency-injection-cannot-consume-scoped-service/</link><pubDate>Sat, 18 Jan 2020 12:23:12 +0000</pubDate><guid>https://codingblast.com/asp-net-core-dependency-injection-cannot-consume-scoped-service/</guid><description>&lt;p&gt;When working with ASP.NET Core and it&amp;rsquo;s Dependency Injection container, you will likely run into an error that&amp;rsquo;s similar to this one:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Some services are not able to be constructed (Error while validating the service descriptor &amp;lsquo;ServiceType: AspNetCoreDi.IMyConnectionManager Lifetime: Singleton ImplementationType: AspNetCoreDi.MyConnectionManager&amp;rsquo;: Cannot consume scoped service &amp;lsquo;AspNetCoreDi.IMyScopedService&amp;rsquo; from singleton &amp;lsquo;AspNetCoreDi.IMyConnectionManager&amp;rsquo;.)&lt;/p&gt;</description></item></channel></rss>