When working with NHibernate and Sql Compact in a Windows Form application I am wondering what is the best practice for managing connections. With开发者_如何学运维 SQL CE I have read that you should k
We are using the beloved Ninject+Ninject.Web.Mvc with MVC 2 and are running into some problems.Specifically dealing with 404 errors.We have a logging service that logs 500 errors and records them.Ever
I\'m using Autofac. I want to inject a different implementation of a dependency based on an attribute I apply to the constructor parameter. For example:
i am in big dilema.. I am working on highly modular web app in ASP.NET MVC 2 (in fact, core will be super lightweight, all work on modules/plugins). I found MEF pretty useful for modules discovery, bu
Any idea how I can tell AutoMapper to resolve a TypeConverter constructor argument using StructureMap?
At a certain point, during the running of my app, I want Castle.Windsor to release everything cached in memory. Is this impossib开发者_开发知识库le for a singleton object?Use nested container for that
In my project I register many ISerializers implementations with the assembly scanner. FWIW this is the code that registers my ISerializers
Castle Windsor facilities allow you to hook up some custom code that runs whenever components are registered.Does Uni开发者_JAVA技巧ty have an equivalent?Unity interceptors are described in full here,
public class TheController : Controller { IThe the; public TheController( IThe the) { //when User.IsInRole(\"r1\") The1 should 开发者_开发问答be injected else r2
I understand basically how IoC frameworks work, however one thing I don\'t quite get is how code-based config is supposed to work. With XML I understand how you could add a new assembly to a deployed