Beispiel #1
0
 public RedisSubject(RedisSettings settings, string key, PubSubKeyType keyType = PubSubKeyType.Normal)
 {
     this.settings       = settings;
     this.Db             = settings.Db;
     this.valueConverter = settings.ValueConverter;
     this.Key            = key;
     this.keyType        = keyType;
 }
Beispiel #2
0
 public RedisSubject(RedisGroup connectionGroup, string key, PubSubKeyType keyType = PubSubKeyType.Normal)
     : this(connectionGroup.GetSettings(key), key, keyType)
 {
 }