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)); }
public StoreEngineState(ServerCfg serverCfg, string connectionString) { ServerCfg = serverCfg; ItemTable = new ItemData2Table(connectionString); }
/// <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); }