Posts by Yuri • 11 points
1 post
-
1
votes1
answer45
viewsQ: .NET Core - Class configured in container with Addsingleton() needs to be a Singleton?
A Web API application in . NET Core consumes a DLL in . NET Standard. DLL has a Foo class that depends on the Bar class: class Foo { private readonly IBar bar; public Foo(IBar bar) { this.bar = bar;…