// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Threading;
usingSystem.Windows.Threading;
namespaceRoslyn.Test.Utilities
{
publicsealedclassStaTaskScheduler:IDisposable
{
/// <summary>Gets a <see cref="StaTaskScheduler"/> for the current <see cref="AppDomain"/>.</summary>
/// <remarks>We use a count of 1, because the editor ends up re-using <see cref="DispatcherObject"/>
/// instances between tests, so we need to always use the same thread for our Sta tests.</remarks>