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