Ejemplo n.º 1
0
        public T Get()
        {
            if ((access & DeviceValueAccess.Write) == 0)
            {
                throw new DeviceAccessDeniedException(access, DeviceValueAccess.Write);
            }

            var response = webClient.DownloadString(getResourceTemplate);

            return(ValueSerializer <T> .Deserialize(response, access));
        }
Ejemplo n.º 2
0
 public T Get() => ValueSerializer <T> .Deserialize(File.ReadAllText(path), access);