Skip to content

Commit e31cef3

Browse files
committed
Merge pull request #2003 from hmemcpy/patch-1
2 parents 3b0f6e1 + d09a861 commit e31cef3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

StyleCop.Analyzers/StyleCopTester/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ private static void Main(string[] args)
4141
cts.Cancel();
4242
};
4343

44+
// Since Console apps do not have a SyncronizationContext, we're leveraging the built-in support
45+
// in WPF to pump the messages via the Dispatcher.
46+
// See the following for additional details:
47+
// http://blogs.msdn.com/b/pfxteam/archive/2012/01/21/10259307.aspx
48+
// https://github.com/DotNetAnalyzers/StyleCopAnalyzers/pull/1362
4449
SynchronizationContext previousContext = SynchronizationContext.Current;
4550
try
4651
{

0 commit comments

Comments
 (0)