Skip to content

Commit 58913ed

Browse files
committed
Reduce the priority of dispatcher operations in integration tests
1 parent a0fd3b3 commit 58913ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tvl.VisualStudio.MouseFastScroll.IntegrationTests/InProcComponent.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ private static Dispatcher CurrentApplicationDispatcher
3131
=> Application.Current.Dispatcher;
3232

3333
protected static void BeginInvokeOnUIThread(Action action)
34-
=> CurrentApplicationDispatcher.BeginInvoke(action);
34+
=> CurrentApplicationDispatcher.BeginInvoke(action, DispatcherPriority.Background);
3535

3636
protected static void InvokeOnUIThread(Action action)
37-
=> CurrentApplicationDispatcher.Invoke(action);
37+
=> CurrentApplicationDispatcher.Invoke(action, DispatcherPriority.Background);
3838

3939
protected static T InvokeOnUIThread<T>(Func<T> action)
40-
=> CurrentApplicationDispatcher.Invoke(action);
40+
=> CurrentApplicationDispatcher.Invoke(action, DispatcherPriority.Background);
4141

4242
protected static TInterface GetGlobalService<TService, TInterface>()
4343
where TService : class

0 commit comments

Comments
 (0)