示例#1
0
        public virtual void OnNext(IWampEvent value)
        {
            PublishOptions options = value.Options ?? EmptyOptions;

            object[] arguments = value.Arguments;
            IDictionary <string, object> argumentsKeywords = value.ArgumentsKeywords;

            if (argumentsKeywords != null)
            {
                Publish(options, arguments, argumentsKeywords);
            }
            else if (arguments != null)
            {
                Publish(options, arguments);
            }
            else
            {
                Publish(options);
            }
        }
示例#2
0
        public void OnNext(TTuple value)
        {
            IWampEvent wampEvent = mConverter.ToEvent(value);

            mSubject.OnNext(wampEvent);
        }