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; }
public RedisGroupRepositoryFactory(IOptionsMonitor <RedisGroupOptions> options) { _options = options.CurrentValue; }