protected override void OnStartup(StartupEventArgs e){base.OnStartup(e);IWindsorContainer container = new WindsorContainer();container.AddFacility<AutoTxFacility>();container.Register(Component.For<INHibernateInstaller>().ImplementedBy<FluentNHibernateInstaller>());container.AddFacility<NHibernateFacility>();}
public class FluentNHibernateInstaller : INHibernateInstaller{public FluentConfiguration BuildFluent(){return Fluently.Configure();}private IPersistenceConfigurer SetupDatabase(){return MsSqlConfiguration.MsSql2008.ConnectionString(c => c.Server("Server").Database("Database").Username("User").Password("Password"));}public Maybe<NHibernate.IInterceptor> Interceptor{get { return Maybe.None<NHibernate.IInterceptor>(); }}public bool IsDefault{get { return true; }}public void Registered(ISessionFactory factory){}public string SessionFactoryKey{get { return "sf.default"; }}}
To me this looks like something is wrong with the DLL but when I posted about this in the other thread it was suggested that I had incompatible versions of Windsor in my app. Is this true or does it seem like something else is going on?