提交 559baa33 编写于 作者: J Jonathon Marolf

Merge pull request #10542 from jmarolf/stabilization

Do not throw if initialized by Winforms UI thread
Fixes https://github.com/dotnet/roslyn/issues/10510
......@@ -13,6 +13,7 @@ namespace Microsoft.CodeAnalysis.Utilities
internal enum ForegroundThreadDataKind
{
Wpf,
WinForms,
StaUnitTest,
JoinableTask,
ForcedByPackageInitialize,
......@@ -43,6 +44,10 @@ internal static ForegroundThreadDataKind CreateDefault(ForegroundThreadDataKind
return JoinableTask;
case "System.Windows.Forms.WindowsFormsSynchronizationContext":
return WinForms;
default:
return defaultKind;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册