MvcContrib Windsor Setup Component With Parameter
问题 I am using the MvcContrib library with Castle Windsor and I am having a problem with setting a parameter when I register a component. I have the following interfaces for classes that wrap a DataContext. I want to be able to specify which DataContext to use for different services because I am connecting to several databases to retrieve data. public interface IDataContext { DataContext Context { get; } } public interface IReportingDC : IDataContext { } public class Repository<T> : IRepository<T