Beispiel #1
0
        public async Task <bool> ExecuteAsync(DeviceRequest request)
        {
            var serializer = SerializerFactory.CreateSerializerFromType(request.Command);
            var device     = DeviceFactory.CreateDeviceFromType(request.Command);
            var data       = serializer.Serialize(request.Data);
            var result     = await device.ExecuteAsync(data);

            return(result);
        }