Beispiel #1
0
        public static Task WaitUntil(this IWallClock clock, DateTime targetTime)
        {
            var now = clock.CurrentLocalTime();

            return(now >= targetTime ? Task.CompletedTask : clock.Wait(targetTime - now));
        }
 public SurfReport(IWallClock wallClock)
 {
     this.wallClock = wallClock ?? throw new ArgumentNullException(nameof(wallClock));
 }