Quantcast
Channel: Munq Releases Rss Feed
Viewing all articles
Browse latest Browse all 20

Released: Munq Release 1.0 (Oct 11, 2009)

$
0
0

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

Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>