예제 #1
0
        public virtual IWampEvent ToEvent(TTuple tuple)
        {
            IDictionary <string, object> argumentsKeywords = null;

            object[] arguments = mEmptyArguments;

            if (mDictionaryConverter != null)
            {
                argumentsKeywords = mDictionaryConverter.ToDictionary(tuple);
            }
            else
            {
                arguments = mArrayConverter.ToArray(tuple);
            }

            WampEvent result =
                new WampEvent
            {
                Arguments         = arguments,
                ArgumentsKeywords = argumentsKeywords
            };

            return(result);
        }
 public override object[] GetArguments(object result)
 {
     return(mConverter.ToArray(result));
 }