Munq Release 1.0

Rating: No reviews yet
Downloads: 50
Released: Oct 11, 2009
Updated: Oct 11, 2009 by mdennis
Dev status: Stable Help Icon

Recommended Download

Source Code MunqV1Source.zip
source code, 535K, uploaded Oct 11, 2009 - 50 downloads

Release Notes

Munq V 1.0 Source Code

This release cleans up the code. After refactoring the Registration<TType> has been removed.

+!! Overview
Munq.DI is a very small, fast dependency injection container designed for ASP.NET applications, both Webforms and MVC.
It has, by design, limited features. The main goal has been to minimize the CPU required for Resolving types from the container.
Take a look, the container.cs file is only 100 lines and the registration object code only 64.

I've also created a MunqDIControllerFactor for ASP.NET MVC and a sample application. Included in the sample app is an example of using ASP.NET Themes to change CSS. The choice is stored in the user profile. I think I've created the worlds ugliest Theme, but I could be wrong. :)

Methods

  • Container Registration Methods
    • public IRegistration Register<TType>(Func<Container, object> func)
    • public IRegistration Register<TType>(string name, Func<Container, object> func)
    • public IRegistration RegisterInstance<TType>(TType instance)
    • public IRegistration RegisterInstance<TType>(string name, TType instance)
    • public IRegistration Register(Type type, object func)
    • public IRegistration Register(string name, Type type, object func)
  • Container Resolve Methods
    • public TType Resolve<TType>()
    • public TType Resolve<TType>(string name)
    • public object Resolve(Type type)
    • public object Resolve(string name, Type type)
  • Lifetime Management
    • Always New
    • Container Lifetime
    • Session Lifetime
    • Request Lifetime
    • Cached Lifetime

Reviews for this release

No reviews yet for this release.