public MessageCompletable(RedisChannel channel, RedisValue message, Action <RedisChannel, RedisValue> handler)
 {
     this.channel = channel;
     this.message = message;
     this.handler = handler;
 }
Esempio n. 2
0
 internal void Write(RedisChannel channel)
 {
     WriteUnified(outStream, ChannelPrefix, channel.Value);
 }
Esempio n. 3
0
 public CommandChannelValueMessage(int db, CommandFlags flags, RedisCommand command, RedisChannel channel, RedisValue value) : base(db, flags, command, channel)
 {
     value.AssertNotNull();
     this.value = value;
 }
Esempio n. 4
0
        public Task <long> SubscriptionSubscriberCountAsync(RedisChannel channel, CommandFlags flags = CommandFlags.None)
        {
            var msg = Message.Create(-1, flags, RedisCommand.PUBSUB, RedisLiterals.NUMSUB, channel);

            return(ExecuteAsync(msg, ResultProcessor.PubSubNumSub));
        }
Esempio n. 5
0
 public CommandChannelBase(int db, CommandFlags flags, RedisCommand command, RedisChannel channel) : base(db, flags, command)
 {
     channel.AssertNotNull();
     this.Channel = channel;
 }
Esempio n. 6
0
 public CommandChannelMessage(int db, CommandFlags flags, RedisCommand command, RedisChannel channel) : base(db, flags, command, channel)
 {
 }
Esempio n. 7
0
 public static Message Create(int db, CommandFlags flags, RedisCommand command, RedisChannel channel, RedisValue value)
 {
     return(new CommandChannelValueMessage(db, flags, command, channel, value));
 }
Esempio n. 8
0
 public static Message Create(int db, CommandFlags flags, RedisCommand command, RedisValue value, RedisChannel channel)
 {
     return(new CommandValueChannelMessage(db, flags, command, value, channel));
 }
        public EndPoint SubscribedEndpoint(RedisChannel channel)
        {
            var server = multiplexer.GetSubscribedServer(channel);

            return(server?.EndPoint);
        }
Esempio n. 10
0
 public bool IsConnected(RedisChannel channel = default(RedisChannel))
 {
     return(multiplexer.SubscriberConnected(channel));
 }
Esempio n. 11
0
            public ICompletable ForInvoke(RedisChannel channel, RedisValue message)
            {
                var tmp = handler;

                return(tmp == null ? null : new MessageCompletable(channel, message, tmp));
            }
Esempio n. 12
0
        public long SubscriptionSubscriberCount(RedisChannel channel, CommandFlags flags = CommandFlags.None)
        {
            var msg = Message.Create(-1, flags, RedisCommand.PUBSUB, RedisLiterals.NUMSUB, channel);

            return(ExecuteSync(msg, ResultProcessor.Int64));
        }
Esempio n. 13
0
 protected CommandChannelBase(int db, CommandFlags flags, RedisCommand command, RedisChannel channel) : base(db, flags, command)
 {
     channel.AssertNotNull();
     Channel = channel;
 }