Example #1
0
        public T GetResult <TMessage>(IWampFormatter <TMessage> formatter, TMessage[] arguments, IDictionary <string, TMessage> argumentsKeywords)
        {
            object[] array =
                mUnpacker.UnpackParameters(formatter, arguments, argumentsKeywords);

            T result = (T)mConverter.ToTuple(array);

            return(result);
        }
Example #2
0
        public virtual TTuple ToTuple <TMessage>(IWampFormatter <TMessage> formatter,
                                                 TMessage[] argumentsArray,
                                                 IDictionary <string, TMessage> argumentKeywords)
        {
            object[] unpacked =
                mArgumentUnpacker.UnpackParameters(formatter,
                                                   argumentsArray,
                                                   argumentKeywords);

            return((TTuple)mArrayConverter.ToTuple(unpacked));
        }