public MultipleDatabaseSessionProvider(
     IServiceProvider serviceProvider,
     FooSessionFactory fooSessionFactory,
     BarSessionFactory barSessionFactory)
 {
     _serviceProvider   = serviceProvider;
     _fooSessionFactory = fooSessionFactory.SessionFactory;
     _barSessionFactory = barSessionFactory.SessionFactory;
 }
 public MultipleDatabaseClassMetadataProvider(FooSessionFactory fooSessionFactory, BarSessionFactory barSessionFactory)
 {
     _fooSessionFactory = fooSessionFactory.SessionFactory;
     _barSessionFactory = barSessionFactory.SessionFactory;
 }