Why the Dispose method are not being called for Transient and Scoped service after using ? Source: https://dotnetfiddle.net/wtyP9n