2017-08-09 48 views
-1

我打算打电话异步版本火&忘记方案例如1.在Azure表存储中写入日志2.将消息推送到服务总线。Async Web API是否适合任何实际用途?

我不打算阻止或等待外部API调用。然而网络API抛出以下错误:

Web Api + HttpClient: An asynchronous module or handler completed while an asynchronous operation was still pending

似乎IIS请求线程必须保持活跃。即使我们不阻止api电话。

Is there any way we could let the external API continue its operation, using Async/Await?

+3

你说你不打算等待外部API调用。为什么不? –

+0

@JasonBoyd外部APi调用是为了记录目的,所以不在乎它是否成功。可以考虑使用服务总线主题将一些任务委派给工作角色。 – Abhijeet

回答

相关问题