Example #1
0
        public WirehomeDictionary PostProcessMessage(string uid, [FromBody] WirehomeDictionary message)
        {
            try
            {
                var component = _componentRegistryService.GetComponent(uid);

                var result = _componentRegistryService.ProcessComponentMessage(uid, message);
                result["component"] = component;
                return(result);
            }
            catch (ComponentNotFoundException)
            {
                HttpContext.Response.StatusCode = (int)HttpStatusCode.NotFound;
                return(null);
            }
        }
 public object GetComponent(string uid)
 {
     return(CreateComponentModel(_componentRegistryService.GetComponent(uid)));
 }
    public string get_logic_id(string component_uid)
    {
        var component = _componentRegistryService.GetComponent(component_uid);

        return(component.GetLogicId());
    }
 public Component GetComponent(string uid)
 {
     return(_componentRegistryService.GetComponent(uid));
 }