Browse Source

WIP to get .NET 5 support for Rx

Claire Novotny 5 years ago
parent
commit
04d48afaa8

+ 1 - 1
Rx.NET/Source/src/System.Reactive/Platforms/UWP/Concurrency/CoreDispatcherScheduler.cs

@@ -51,7 +51,7 @@ namespace System.Reactive.Concurrency
         {
             get
             {
-                var window = Window.Current;
+                var window = CoreWindow.GetForCurrentThread();
                 if (window == null)
                 {
                     throw new InvalidOperationException(Strings_WindowsThreading.NO_WINDOW_CURRENT);