http - 如何检查一个 HTTP 客户端是否仍然连接到 asp.net core 中的服务器?

标签 http asp.net-core .net-core httpclient asp.net-core-1.1

我想知道是否有办法检查一个客户端是否仍连接到 asp.net 核心服务器?

如果我理解得很好,在标准的 asp.net 中我们可以使用 this property 来做到这一点,我想问我们是否可以在 asp.net core 中这样做?

最佳答案

如@Tracher 所述,我们可以检查 RequestAborted 取消 token 。

关于http - 如何检查一个 HTTP 客户端是否仍然连接到 asp.net core 中的服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50356486/

相关文章:

android - HttpURL连接 : what does setFixedLengthStreamingMode() want the size of?

asp.net-core - Piranha CMS 本地化

http - 通过 http 而不是 https 调用 wso2 产品中的管理服务?

java - JSP : How to get the URL Address of the page that redirects to another page in java?

php - 如何在 PHP 中将 HTTP 请求中的所有信息打印到屏幕

c# - System.MissingMethodException : 'Method not found: ' Void Microsoft. AspNetCore.Mvc.RazorPages.RazorPagesOptions.set_AllowAreas( bool 值 )'.'

asp.net-core - 如何在 coreCLR 中设置 gcAllowVeryLargeObjects?

.net-core - 在 Azure Pipelines 构建中命名生成的 ZIP 存档?

ruby - 无法在 Linux 中构建 .NET Core 控制台应用程序

c# - 如何使用 OWIN Jwt Bearer Authentication 记录认证结果