Why the default SynchronizationContext is not captured in a Console App?

前端 未结 3 1825
梦如初夏
梦如初夏 2020-11-30 10:28

I\'m trying to learn more about the SynchronizationContext, so I made this simple console application:

private static void Main()
{
    var sc =         


        
3条回答
  •  离开以前
    2020-11-30 11:00

    By default, all threads in console applications and Windows Services only have the default SynchronizationContext.

    Kindly refer to the link https://msdn.microsoft.com/magazine/gg598924.aspx for more details. This has detailed information regarding SynchronizationContext in various types of application.

提交回复
热议问题