无法取消Asp.net核心操作中的任务 [英] Can't cancel task in Asp.net core Action
本文介绍了无法取消Asp.net核心操作中的任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正试图取消在Asp.net Core Action中运行的Task。为此,我正在使用此github 示例。
如果可以在控制台中运行服务,则可以取消任务,但是如果我在IIS(或IIS Express)下运行,则任务不能取消。
我看到了类似的问题还有一个问题。基于此的问题应该已经解决。
我正在使用.Net core 2.1。
I am trying to cancel Task running in Asp.net Core Action. For that I am using this github sample. I can cancel task if running service in console, but if I run under IIS (or IIS Express) task is not canceling. I saw similar issue in other question. Based on it issue should be fixed already. I am using .Net core 2.1.
推荐答案
据我所知,这是已知问题,尚未解决。在ANCM项目页面上查看更多详细信息。
As I know this is known issue and doesn't fixed yet. See more details on ANCM project page.
这篇关于无法取消Asp.net核心操作中的任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文