Castle Windsor IoC inject Property into Constructor
问题 I have a session manager class that has a session property. I need to pass that into another class as a constructor parameter. How should I configure the installer for castle windsor? e.g. public interface ISessionManager { ISession CurrentSession { get; set; } } public class SessionManager : ISessionManager { private ISession _session; public ISession CurrentSession { get { return _session ?? (_session = NHibernateHelper.OpenSession()); } set { _session = value; } } } public interface