fix:signalR razor dispose接口

This commit is contained in:
Kimdiego2098
2023-10-09 18:11:23 +08:00
parent 31eee6b009
commit 24bc60abf0
2 changed files with 3 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
@namespace ThingsGateway.Admin.Blazor
@using Microsoft.AspNetCore.SignalR.Client;
@using ThingsGateway.Admin.Application;
@implements IAsyncDisposable;
@code {
HubConnection _hubConnection;
@@ -32,6 +32,7 @@
await _hubConnection.DisposeAsync();
}
}
/// <inheritdoc/>
protected override async Task OnAfterRenderAsync(bool firstRender)
{

View File

@@ -3,7 +3,7 @@
<PropertyGroup>
<ApplicationIcon>wwwroot\favicon.ico</ApplicationIcon>
<ServerGarbageCollection>false</ServerGarbageCollection>
<!--<ServerGarbageCollection>false</ServerGarbageCollection>-->
<!--<PlatformTarget>x86</PlatformTarget>-->
</PropertyGroup>