Reactive.Annex.Uno.WinUI
2.0.0
dotnet add package Reactive.Annex.Uno.WinUI --version 2.0.0
NuGet\Install-Package Reactive.Annex.Uno.WinUI -Version 2.0.0
<PackageReference Include="Reactive.Annex.Uno.WinUI" Version="2.0.0" />
paket add Reactive.Annex.Uno.WinUI --version 2.0.0
#r "nuget: Reactive.Annex.Uno.WinUI, 2.0.0"
// Install Reactive.Annex.Uno.WinUI as a Cake Addin #addin nuget:?package=Reactive.Annex.Uno.WinUI&version=2.0.0 // Install Reactive.Annex.Uno.WinUI as a Cake Tool #tool nuget:?package=Reactive.Annex.Uno.WinUI&version=2.0.0
Reactive.Annex
New types and extension methods built on top of System.Reactive
.
Getting Started
Add the
Reactive.Annex
nuget package to your project.Then, make sure you are using the
System.Reactive.Linq
andSystem.Reactive.Concurrency
namespaces in your file.
You are now ready to use these handy extension methods!
Next Steps
If your project uses Uno Platform, you can also add the following packages.
Reactive.Annex.Uno.WinUI
for projects using Uno.WinUI or WinUI.
With this, You can create a MainDispatcherScheduler
, which implements the IDispatcherScheduler
interface.
WinUI / Uno.WinUI
Microsoft.UI.Dispatching.DispatcherQueue dispatcherQueue = //...
var scheduler = new MainDispatcherScheduler(dispatcherQueue);
Features
Specialized Interfaces for DI
You can use IBackgroundScheduler
and IDispatcherScheduler
to clearly differentiate background schedulers from dispatcher schedulers. Both interfaces implement IScheduler
. This is useful when using dependency injection.
Implementations
MainDispatcherScheduler
is an implementation of IDispatcherScheduler
. It's available from the Reactive.Annex.Uno
and Reactive.Annex.Uno.WinUI
packages.
- Use
Reactive.Annex.Uno
in projets using UWP or Uno.UI. - Use
Reactive.Annex.Uno.WinUI
in projects using WinUI or Uno.WinUI.
Extension Methods on IObservable
FirstAsync
: Creates a task from an IObservable with the first value observed.FromAsync
: Converts an async method into an observable sequence.SelectManyDisposePrevious
: Runs an async action each time your observable sequence produces a new value while making sure to cancel the previous action if it's still running.SkipWhileSelectMany
: Projects element of an observable sequence to another observable sequence, skipping new elements while resulting observable is not completed, and merges the resulting observable sequences into one observable sequence.
Extension Methods on IScheduler
ScheduleTask
: Schedules work using an asynchronous method, allowing for cooperative scheduling in an imperative coding style.Run
: Awaits a task execution on the specified scheduler, providing the result.
Legacy
Reactive.Annex.Uno
for projects using Uno.UI and UWP.
UWP / Uno.UI
Windows.UI.Core coreDispatcher = //...
var scheduler = new MainDispatcherScheduler(coreDispatcher);
Changelog
Please consult the CHANGELOG for more information about version history.
License
This project is licensed under the Apache 2.0 license - see the LICENSE file for details.
Contributing
Please read CONTRIBUTING.md for details on the process for contributing to this project.
Be mindful of our Code of Conduct.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-android33.0 is compatible. net7.0-ios was computed. net7.0-ios16.1 is compatible. net7.0-maccatalyst was computed. net7.0-maccatalyst16.1 is compatible. net7.0-macos was computed. net7.0-macos13.0 is compatible. net7.0-tvos was computed. net7.0-windows was computed. net7.0-windows10.0.19041 is compatible. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- Reactive.Annex (>= 2.0.0)
- System.Reactive (>= 4.4.1)
- Uno.SourceGenerationTasks (>= 4.1.0)
- Uno.WinUI (>= 5.0.19)
-
net7.0-android33.0
- Reactive.Annex (>= 2.0.0)
- System.Reactive (>= 4.4.1)
- Uno.SourceGenerationTasks (>= 4.1.0)
- Uno.WinUI (>= 5.0.19)
-
net7.0-ios16.1
- Reactive.Annex (>= 2.0.0)
- System.Reactive (>= 4.4.1)
- Uno.SourceGenerationTasks (>= 4.1.0)
- Uno.WinUI (>= 5.0.19)
-
net7.0-maccatalyst16.1
- Reactive.Annex (>= 2.0.0)
- System.Reactive (>= 4.4.1)
- Uno.SourceGenerationTasks (>= 4.1.0)
- Uno.WinUI (>= 5.0.19)
-
net7.0-macos13.0
- Reactive.Annex (>= 2.0.0)
- System.Reactive (>= 4.4.1)
- Uno.SourceGenerationTasks (>= 4.1.0)
- Uno.WinUI (>= 5.0.19)
-
net7.0-windows10.0.19041
- Microsoft.WindowsAppSDK (>= 1.1.3)
- Reactive.Annex (>= 2.0.0)
- System.Reactive (>= 4.4.1)
- Uno.SourceGenerationTasks (>= 4.1.0)
- Uno.WinUI (>= 5.0.19)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Reactive.Annex.Uno.WinUI:
Package | Downloads |
---|---|
Nventive.Persistence.Sample.Mobile
Package Description |
|
Nventive.Persistence.Sample.Windows
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0 | 8,779 | 1/2/2024 |
2.0.0-feature.Uno5.4 | 112 | 12/7/2023 |
2.0.0-feature.Uno5.2 | 1,308 | 11/28/2023 |
1.0.2 | 9,705 | 9/26/2023 |
1.0.1 | 197 | 9/15/2023 |
0.6.0-dev.50 | 25,793 | 10/26/2022 |
0.5.0-feature.dotnet6.38 | 169 | 9/22/2022 |
0.5.0-dev.46 | 113 | 10/13/2022 |
0.5.0-dev.44 | 167 | 10/13/2022 |
0.5.0-dev.41 | 114 | 10/11/2022 |
0.5.0-dev.39 | 146 | 9/26/2022 |
0.1.0 | 178 | 9/14/2023 |