protected override async Task OnCompleted(bool hasCancelled)
 {
     OutputWriter.WriteLine($"Task completed. Was cancelled {hasCancelled}");
     SoundService.Play(SoundServiceSound.End);
     await base.OnCompleted(hasCancelled);
 }
 protected override async Task <bool> OnStarting()
 {
     OutputWriter.WriteLine("Starting task.");
     SoundService.Play(SoundServiceSound.Start);
     return(await base.OnStarting());
 }
 public LoopingTyperRunner(SoundService soundService, OutputWriter outputWriter)
 {
     SoundService = soundService;
     OutputWriter = outputWriter;
 }