自定义同步上下文

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

在 Stephen Toub 的这篇旧文章中,您可以在 here 中找到,

syncCtx.RunOnCurrentThread()
调用是否在线程 1 上执行,从而无限期地阻塞线程,阻止任何生产者将项目放置在同步上下文中?

taskscheduler synchronizationcontext
© www.soinside.com 2019 - 2024. All rights reserved.