Add a default VS foregrounddispatcher

This commit is contained in:
Ryan Nowak 2017-08-24 11:29:26 -07:00
parent a9a86fa3bf
commit 7ca8255d6f
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Shell;
namespace Microsoft.VisualStudio.LanguageServices.Razor
{
[Export(typeof(ForegroundDispatcher))]
internal class VisualStudioForegroundDispatcher : ForegroundDispatcher
{
public override bool IsForegroundThread => ThreadHelper.CheckAccess();
}
}