Ejemplo n.º 1
0
 public RedisEventStore(IRedisConnectionManager connectionManager, ISerializer serializer)
 {
     _serializer = serializer;
     _redis = connectionManager.Redis;
     _snapshottingEnabled = false;
     _snapshotFrequency = 0;
 }
Ejemplo n.º 2
0
        public RedisEventStore(IRedisConnectionManager connectionManager, ISerializer serializer, int snapshotFrequency)
        {
            if (snapshotFrequency <= 0)
                throw new ArgumentException("Snapshot frequency must be greater than 0 if set", nameof(snapshotFrequency));

            _serializer = serializer;
            _snapshotFrequency = snapshotFrequency;
            _redis = connectionManager.Redis;
            _snapshottingEnabled = true;
        }
Ejemplo n.º 3
0
 public RedisCurrencyRateStorage(IRedisConnectionManager manager)
 {
     manager_ = manager;
 }
Ejemplo n.º 4
0
 public RedisCache(IRedisConnectionManager cacheConnection)
 {
     _cacheConnection = cacheConnection;
 }