예제 #1
0
        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();
            }
        }
예제 #2
0
 public string GetValue(string key)
 {
     _usedKeys.Add(key);
     return(_inner.GetValue(key));
 }