问题描述 投票:0回答:1

按钮将直接杀死过程,这意味着该应用程序没有机会执行任何清理逻辑,包括Ihostapplicationlifetime中的事件。

Stop

因此,如果您想通知所有SignalR客户端,我们需要手动单击
w3wp.exe
c# asp.net-core signalr
1个回答
0
投票

在这里是测试结果。

测试代码

Index.cshtml
[![enter code here][1]][1]

myhub.cs

Recyle... enter image description hereMyservice.cs

Application Pool

program.cs

Stop
    

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.