SetMessageResult() private method

private SetMessageResult ( IMessageResult messageResult ) : void
messageResult IMessageResult
return void
        internal Task <KeyValuePair <string, double>[]> ExecuteStringDoublePairs(RedisMessage message, bool queueJump)
        {
            var msgResult = new MessageResultStringDoublePairs();

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
Esempio n. 2
0
        internal Task <object> ExecuteScript(RedisMessage message, bool inferStrings, bool queueJump)
        {
            var msgResult = new MessageResultScript(this, inferStrings);

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
        internal Task <string[]> ExecuteMultiString(RedisMessage message, bool queueJump, object state = null)
        {
            var msgResult = new MessageResultMultiString(state);

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
        internal Task <Dictionary <string, string> > ExecuteStringPairs(RedisMessage message, bool queueJump)
        {
            var msgResult = new MessageResultStringPairs();

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
        internal Task <double?> ExecuteNullableDouble(RedisMessage message, bool queueJump, object state = null)
        {
            var msgResult = new MessageResultNullableDouble(state);

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
        internal Task <byte[][]> ExecuteMultiBytes(RedisMessage message, bool queueJump)
        {
            var msgResult = new MessageResultMultiBytes();

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
        internal Task <string> ExecuteString(RedisMessage message, bool queueJump)
        {
            var msgResult = new MessageResultString();

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
        internal Task <long?> ExecuteNullableInt64(RedisMessage message, bool queueJump)
        {
            var msgResult = new MessageResultNullableInt64();

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
        internal Task <double> ExecuteDouble(RedisMessage message, bool queueJump)
        {
            var msgResult = new MessageResultDouble();

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
        internal Task <RedisResult> ExecuteRaw(RedisMessage message, bool queueJump)
        {
            var msgResult = new MessageResultRaw();

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
        internal Task ExecuteVoid(RedisMessage message, bool queueJump)
        {
            var msgResult = new MessageResultVoid();

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
        internal Task <bool> ExecuteBoolean(RedisMessage message, bool queueJump)
        {
            var msgResult = new MessageResultBoolean();

            message.SetMessageResult(msgResult);
            EnqueueMessage(message, queueJump);
            return(msgResult.Task);
        }
Esempio n. 13
0
            // avoid lots of delegate creations

            internal override IEnumerable <RedisMessage> CreateMessages()
            {
                yield return(RedisMessage.Create(db, RedisLiteral.WATCH, key));

                var msgResult = new MessageResultBoolean(this);

                msgResult.Task.ContinueWith(testExisted);
                RedisMessage message = hashField == null
                                           ? RedisMessage.Create(db, RedisLiteral.EXISTS, key)
                                           : RedisMessage.Create(db, RedisLiteral.HEXISTS, key, hashField);

                message.SetMessageResult(msgResult);
                yield return(message);
            }
Esempio n. 14
0
            // avoid lots of delegate creations

            internal override sealed IEnumerable <RedisMessage> CreateMessages()
            {
                yield return(RedisMessage.Create(db, RedisLiteral.WATCH, key));

                IMessageResult msgResult = CreateMessageResult(this);

                msgResult.Task.ContinueWith(testEquality);
                RedisMessage message = hashField == null
                                           ? RedisMessage.Create(db, RedisLiteral.GET, key)
                                           : RedisMessage.Create(db, RedisLiteral.HGET, key, hashField);

                message.SetMessageResult(msgResult);
                yield return(message);
            }
 internal Task<object> ExecuteScript(RedisMessage message, bool inferStrings, bool queueJump)
 {
     var msgResult = new MessageResultScript(this, inferStrings);
     message.SetMessageResult(msgResult);
     EnqueueMessage(message, queueJump);
     return msgResult.Task;
 }