Exemple #1
0
 public RedisGroupRepository(MessagePackSerializerOptions serializerOptions, RedisGroupOptions redisGroupOptions, IMagicOnionLogger logger)
 {
     this.serializerOptions = serializerOptions;
     this.logger            = logger;
     this.factory           = CreateGroup;
     this.connection        = redisGroupOptions.ConnectionMultiplexer ?? throw new InvalidOperationException("RedisGroup requires add ConnectionMultiplexer to MagicOnionOptions.ServiceLocator before create it. Please try new MagicOnionOptions{DefaultServiceLocator.Register(new ConnectionMultiplexer)}");
     this.db = redisGroupOptions.Db;
 }
Exemple #2
0
 public RedisGroupRepositoryFactory(IOptionsMonitor <RedisGroupOptions> options)
 {
     _options = options.CurrentValue;
 }