예제 #1
0
 public IPomonaSessionFactory GetFactory(PomonaModule module)
 {
     return(this.moduleFactoryMap.GetOrAdd(module.GetType(), t => CreateFactory(module)));
 }
예제 #2
0
        private IPomonaSessionFactory CreateFactory(PomonaModule module)
        {
            var conf = module.GetConfiguration();

            return(conf.CreateSessionFactory());
        }
 public IPomonaSessionFactory GetFactory(PomonaModule module)
 {
     return this.moduleFactoryMap.GetOrAdd(module.GetType(), t => CreateFactory(module));
 }
예제 #4
0
 public ModuleContainer(NancyContext nancyContext, IPomonaDataSource dataSource, PomonaModule module)
     : base(nancyContext)
 {
     this.dataSource = dataSource;
     this.module     = module;
 }
 private IPomonaSessionFactory CreateFactory(PomonaModule module)
 {
     var conf = module.GetConfiguration();
     return conf.CreateSessionFactory();
 }