Most voted "simple-injector" questions
Simple Injector is a dependency injection library (DI) for. NET 4+ supports Silverlight 4+, Windows Phone 8, Windows 8 including UWP and Mono applications. Simple Injector is easily integrated with frameworks such as Web API, MVC, WCF and many others. It is easy to implement the dependency injection pattern with low coupling using the Simple Injector.
Learn more…11 questions
Sort by count of
-
8
votes1
answer809
viewsSimple Injector + Uow + DDD + Multiple Contexts + Entity Framework
I need to know how to apply Ioc to two contexts. The scenario is as follows: I have a Layer called Core (allocates classes that I can reuse in other layers), where I put the interface of Idbcontext,…
-
3
votes1
answer501
views-[Lifestyle Mismatch] Applicationsigninmanager (Web Request) depends on Iauthenticationmanager (Transient)
I’m getting an error on startup simpleinjector which I cannot solve at all. The error appears when it tries to run the line: container.Verify(); Follows error: -[Lifestyle Mismatch]…
-
3
votes2
answers262
viewsHow to use Simpleinjector in a multi-layer project?
Imagine the classic architecture: Consoleapplication (Frontend) --> Business Layer (BLL) --> Data Access Layer (DAL) That is, Frontend references BLL that references DAL. See that Frontend…
c# software-architecture dependency-injection ioc simple-injectorasked 6 years, 11 months ago Ewerton 194 -
2
votes1
answer121
viewsIoc with Web Service
I need to create a WS with Ioc. I created a new Web project with Web API dependencies ; I added a Web Service (asmx); I installed the Simpleinjector; The code went like this : [WebService(Namespace…
-
2
votes0
answers186
viewsHow to configure Owincontext Authentication in Simpleinjector 3.3.2?
In my current application I use Simpleinjector 3.2.0 with a similar configuration to this: var container = new Container(); container.Options.DefaultScopedLifestyle = new WebRequestLifestyle();…
-
1
votes0
answers663
viewsAsp.net C# DDD - Implementing Web Api
I’m developing a DDD structure system with Simple Injector. When developing the WEB API, the data returned from the BD is null. In other tests performed in the MVC view, the same data is returned…
-
1
votes1
answer236
viewsProblems with a Dependency Injection Container - Simple Injector
I am mounting my ID container using Simple Injector, but it is giving a compilation error (Underlined in red) in config. from the Ireadonlyrepository interface with the Clientedapperrepository…
-
1
votes1
answer52
viewsDoubt on how to Map an Interface with a Class - Simpleinjector
I’m having trouble mapping the Interface IClienteRepository with class ClienteRepository. When compiling the application, this error appears: "Exception {"To be Able to use the Lifestyle.Scoped…
-
1
votes0
answers32
viewsDepencyresolver problem when using Testserver, difference between instantiating Httpconfiguration and not instantiating
I have a simple authorization filter that to get an instance of a service I require in GlobalConfiguration.Configuration.DependencyResolver. Thus: var service = GlobalConfiguration.Configuration…
-
1
votes1
answer392
viewsSimpleinjector: The Configuration is invalid. The type is directly or Indirectly Depending on itself
I have the following problem when applying the Simpleinjector container in a simple application: The configuration is invalid. The type BookAppService is directly or indirectly depending on itself.…
c# asp.net-mvc dependency-injection ioc simple-injectorasked 6 years, 8 months ago Matheus Daumas 37 -
1
votes2
answers862
viewsNo parameterless constructor defined for this Object
I am trying to create a constructor with parameters as shown below: public class TestController : Controller { private readonly IAppService _servico; public DashboardController(IAppService servico)…