I\'m self-hosting several开发者_运维知识库 services where I do this to register the service: host = new ServiceHost(typeof(MyService));
public class TheController : Controller { IThe the; public TheController( IThe the) { //when User.IsInRole(\"r1\") The1 should 开发者_开发问答be injected else r2
Given the following classes/interfaces : class Repository<T> : IRepository<T> {} class UserRepository : Repository<User>, IUserRepository {}
I am having difficulty with managing configuration of an ASP.Net application to deploy for different clients. The sheer volume of different settings which need twiddling takes up large amounts of time
I want to implement multi tenancy using Windsor and i don\'t know how to handle this situation: i succesfully used this technique in plain ASP.NET MVC projects and thought incorporating in a RIA Serv
So my company uses Castle Windsor IoC container, but in a way that feels \"off\": All the data types are registered in code, not the config file.
We want to be able to Resolve services using Castle for implementation with private constructors. This is a fictive \"use case\" for that:
Can anyone point me towards some good documentation / code examples on how best to manage the configuration of a DI container in a scenario where you need different configuations sets?
I want to handle application\'s internal exceptions in a consistent way so that REST web services return errors in a RESTful way.
I have a scenario where I need to know 开发者_StackOverflow社区if a specific type can currently be resolved by a Windsor container. The wrinkle is that this type has dependencies. So I have a ProductR