public void register_message_handler(string type, Func <PythonDictionary, PythonDictionary> handler)
        {
            if (handler == null)
            {
                throw new ArgumentNullException(nameof(handler));
            }

            _cloudService.RegisterMessageHandler(type, p => handler(p));
        }
예제 #2
0
        public void register_raw_message_handler(string type, RawMessageHandler handler)
        {
            if (handler == null)
            {
                throw new ArgumentNullException(nameof(handler));
            }

            _cloudService.RegisterMessageHandler(type, p => handler(PythonConvert.ToPythonDictionary(p)));
        }