From af51421b6302c2cd0c6b554ef40310828803923a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 22 Mar 2024 00:23:43 +0100 Subject: [PATCH] Fix calls to nullable events --- Tasks/UrlTester/DT2/DT2.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tasks/UrlTester/DT2/DT2.cs b/Tasks/UrlTester/DT2/DT2.cs index 3071a9b..b21e65d 100644 --- a/Tasks/UrlTester/DT2/DT2.cs +++ b/Tasks/UrlTester/DT2/DT2.cs @@ -88,16 +88,16 @@ namespace DT2 { } public int GetUrlSync(string url) { - PageStart(url); + PageStart?.Invoke(url); int size = GetPageSize(url); - PageLoaded(url, size); + PageLoaded?.Invoke(url, size); return size; } public async Task GetUrlAsync(string url) { - PageStart(url); + PageStart?.Invoke(url); int size = await Task.Run(() => GetPageSize(url)); - PageLoaded(url, size); + PageLoaded?.Invoke(url, size); return size; } @@ -108,7 +108,7 @@ namespace DT2 { try { size = await task.WaitAsync(TimeSpan.FromMilliseconds(millis)); - PageLoaded(url, size); + PageLoaded?.Invoke(url, size); } catch (TimeoutException) {