示例#1
0
 private async Task <PositionDto> GetPositionAfterTask(AsyncSmartLawnMowingMachineService service, Task task)
 {
     task.Wait();
     return(await service.GetPosition());
 }
示例#2
0
 private async Task <MowerResponseResult> TurnAfterTask(AsyncSmartLawnMowingMachineService service, Task task, string turnDirection)
 {
     task.Wait();
     return(await service.Turn(turnDirection));
 }
示例#3
0
 private async Task <MowerResponseResult> MoveAfterTask(AsyncSmartLawnMowingMachineService service, Task task)
 {
     task.Wait();
     return(await service.Move());
 }
示例#4
0
 private async Task <MowerResponseResult> TurnBeforeWorkIsComplete(AsyncSmartLawnMowingMachineService service, string turnDirection)
 {
     Thread.Sleep(200);
     return(await service.Turn(turnDirection));
 }
示例#5
0
 private async Task <MowerResponseResult> MoveBeforeWorkIsComplete(AsyncSmartLawnMowingMachineService service)
 {
     Thread.Sleep(200);
     return(await service.Move());
 }
示例#6
0
 public MowerController(AsyncSmartLawnMowingMachineService service) => this.service = service;