Ejemplo n.º 1
0
 public PythonDictionary process_message(string component_uid, PythonDictionary message)
 {
     try
     {
         return(_componentRegistryService.ProcessComponentMessage(component_uid, message));
     }
     catch (ComponentNotFoundException)
     {
         return(new WirehomeDictionary()
                .WithValue("type", "exception.component_not_found")
                .WithValue("component_uid", component_uid));
     }
 }
Ejemplo n.º 2
0
 public PythonDictionary process_message(string component_uid, PythonDictionary message)
 {
     try
     {
         return(PythonConvert.ToPythonDictionary(_componentRegistryService.ProcessComponentMessage(component_uid, message)));
     }
     catch (ComponentNotFoundException)
     {
         return(new PythonDictionary
         {
             ["type"] = "exception.component_not_found",
             ["component_uid"] = component_uid
         });
     }
 }