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)); }
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))); }