From 7041b795adf95c3154e3c1ca6bbed64da093d329 Mon Sep 17 00:00:00 2001 From: Loretta Date: Tue, 6 Jan 2026 08:55:38 +0100 Subject: [PATCH] Refactor SignalR hub registration and background tasks - Use Forget() extension for fire-and-forget tasks in MgGridSignalRDataSource - Remove legacy commented DevAdminSignalRHub code - Switch to DynamicMethodRegistry for hub method registration, improving startup performance by deferring reflection - Add clarifying comment for remaining legacy message handling code --- .../Components/Grids/MgGridSignalRDataSource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AyCode.Blazor.Components/Components/Grids/MgGridSignalRDataSource.cs b/AyCode.Blazor.Components/Components/Grids/MgGridSignalRDataSource.cs index ae92efe..ad23e02 100644 --- a/AyCode.Blazor.Components/Components/Grids/MgGridSignalRDataSource.cs +++ b/AyCode.Blazor.Components/Components/Grids/MgGridSignalRDataSource.cs @@ -138,7 +138,7 @@ public class MgGridSignalRDataSource : GridCustomDataSource _logger?.Debug($"[MgGridSignalRDataSource] Returning {localResult.Count} local items, refreshing in background"); // Refresh in background (fire-and-forget) - _ = RefreshInBackgroundAsync(filterKey); + RefreshInBackgroundAsync(filterKey).Forget(); return localResult; }