Exemplo n.º 1
0
        public StoreEngine(ILogger logger, ServerCfg serverCfg)
            : base(PartNames.Store, logger)
        {
            _inboundCallQueue = new AsyncThreadQueue(Logger);
            string connectionString = EnvHelper.FormatDbCfgStr(serverCfg.ModuleInfo.ConfigEnv, serverCfg.DbServer, serverCfg.DbPrefix);

            Logger.LogDebug("Connection String: {0}", connectionString);
            _state = new Guarded <StoreEngineState>(new StoreEngineState(serverCfg, connectionString));
        }
Exemplo n.º 2
0
 public StoreEngineState(ServerCfg serverCfg, string connectionString)
 {
     ServerCfg = serverCfg;
     ItemTable = new ItemData2Table(connectionString);
 }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="serverCfg"></param>
 public CommsEngine(ILogger logger, ServerCfg serverCfg)
     : base(PartNames.Comms, logger)
 {
     _serverCfg           = serverCfg;
     _mainCommsDispatcher = new AsyncThreadQueue(Logger);
 }