无法在 Asp.net core Action 中取消任务 [英] Can't cancel task in Asp.net core Action

查看:30
本文介绍了无法在 Asp.net core Action 中取消任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试取消在 Asp.net Core Action 中运行的任务.为此,我正在使用 this github 示例.如果在控制台中运行服务,我可以取消任务,但如果我在 IIS(或 IIS Express)下运行,则任务不会取消.我在其他问题中看到了类似的问题/a>.基于它,问题应该已经解决了.我使用的是 .Net 核心 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 core Action 中取消任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆