public EventStore(IConfigurationSource config)
        {
            this._config = config;
            var hostname = config.GetValue("rethink-ip");
            var port = int.Parse(config.GetValue("rethink-port"));

            if (_conn == null)
            {
                _conn = _r.connection()
                          .hostname(hostname)
                          .port(port)
                          .connect();
            }
        }
Esempio n. 2
0
 public string GetValue(string key)
 {
     _usedKeys.Add(key);
     return(_inner.GetValue(key));
 }