コード例 #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);
            }
        }
コード例 #2
0
 public object GetComponent(string uid)
 {
     return(CreateComponentModel(_componentRegistryService.GetComponent(uid)));
 }
コード例 #3
0
    public string get_logic_id(string component_uid)
    {
        var component = _componentRegistryService.GetComponent(component_uid);

        return(component.GetLogicId());
    }
コード例 #4
0
 public Component GetComponent(string uid)
 {
     return(_componentRegistryService.GetComponent(uid));
 }