コード例 #1
0
 public async Task PutRotation([FromBody] Rotation direction)
 {
     Direction currentDir = _lawnQuey.MachineDirection;
     IList <ILawnMowerMachineCommand> command = CommandMapper.GetLawnMowerMachineCommand(currentDir, direction);
     await Task.Run(() => _lawnCommands.AddCommandsForLawnMower(command)).ConfigureAwait(false);
 }