Ejemplo n.º 1
0
        /// <inheritdoc />
        public void Lock()
        {
            var command = MyoCommand.Create(
                _myoErrorHandlerDriver,
                () =>
            {
                IntPtr errorHandle;
                var result = PlatformInvocation.Running32Bit
                    ? _myoDeviceBridge.Lock32(_handle, out errorHandle)
                    : _myoDeviceBridge.Lock64(_handle, out errorHandle);

                return(MyoCommandResult.Create(
                           result,
                           errorHandle));
            });

            command.Execute();
        }