Articles : Page 1 of 1

  • Contextual Awareness - Making your container behave intelligently

    Contextual Awareness - Making your container behave intelligently

    Sep 10
    17

    Containers are dumb - what if they were smart? One of the things I really wanted to do when I set out to create the ServiceLocator in Siege.Requisitions was to create a container that could map an interface to multiple types, and then at runtime, automatically figure out which one of those types I really wanted. To accomplish this, I put at it's core a small rule engine to allow users to create rules that would help the container understand how to pick implementations. It works great -- but th...


  • Dependency Injection into Controller Actions in ASP.NET MVC

    Dependency Injection into Controller Actions in ASP.NET MVC

    Sep 10
    17

    Dependency Injection into Controller Actions in ASP.NET MVC Where I work, we use Siege for all of our new (and most of our existing) web applications, taking advantage of it's contextual resolution capabilities to focus on programming our applications and less on making them compatible with our container by generating types and interfaces specifically for distinction by the container. One of the things that we came to realize was that for several of our controllers, the constructor depende...



  • 1