Ejemplo n.º 1
0
 public string subscribe(string uid, PythonDictionary filter, MessageCallback callback)
 {
     return(_messageBusService.Subscribe(uid, filter, m =>
     {
         callback(PythonConvert.ToPythonDictionary(m));
     }));
 }
        //public void publish_response(PythonDictionary request, PythonDictionary response)
        //{
        //    _messageBusService.PublishResponse(request, response);
        //}

        public string subscribe(string uid, PythonDictionary filter, Action <PythonDictionary> callback)
        {
            return(_messageBusService.Subscribe(uid, filter, m =>
            {
                var pythonDictionary = PythonConvert.ToPythonDictionary(m.Message);
                pythonDictionary["subscription_uid"] = uid;

                callback(pythonDictionary);
            }));
        }
Ejemplo n.º 3
0
        //public void publish_response(PythonDictionary request, PythonDictionary response)
        //{
        //    _messageBusService.PublishResponse(request, response);
        //}

        public string subscribe(string uid, PythonDictionary filter, Action <PythonDictionary> callback)
        {
            return(_messageBusService.Subscribe(uid, filter, m => callback(PythonConvert.ToPythonDictionary(m.Message))));
        }