public IPomonaSessionFactory GetFactory(PomonaModule module) { return(this.moduleFactoryMap.GetOrAdd(module.GetType(), t => CreateFactory(module))); }
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)); }
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(); }