Neuro.AppToolkit.Resilience.Maui
0.1.0-preview.2
dotnet add package Neuro.AppToolkit.Resilience.Maui --version 0.1.0-preview.2
NuGet\Install-Package Neuro.AppToolkit.Resilience.Maui -Version 0.1.0-preview.2
<PackageReference Include="Neuro.AppToolkit.Resilience.Maui" Version="0.1.0-preview.2" />
<PackageVersion Include="Neuro.AppToolkit.Resilience.Maui" Version="0.1.0-preview.2" />
<PackageReference Include="Neuro.AppToolkit.Resilience.Maui" />
paket add Neuro.AppToolkit.Resilience.Maui --version 0.1.0-preview.2
#r "nuget: Neuro.AppToolkit.Resilience.Maui, 0.1.0-preview.2"
#:package Neuro.AppToolkit.Resilience.Maui@0.1.0-preview.2
#addin nuget:?package=Neuro.AppToolkit.Resilience.Maui&version=0.1.0-preview.2&prerelease
#tool nuget:?package=Neuro.AppToolkit.Resilience.Maui&version=0.1.0-preview.2&prerelease
Neuro.AppToolkit.Resilience.Maui
.NET MAUI adapters for Neuro.AppToolkit.Resilience. They feed the device's connectivity and the app's lifecycle into the resilience library, so retries wait for the network, background work pauses while the app is suspended, and circuit breakers reset when the network comes back.
using Neuro.AppToolkit.Resilience.Maui;
MauiAppBuilder Builder = MauiApp.CreateBuilder()
.UseMauiApp<App>()
.UseNeuroResilience();
UseNeuroResilience() does three things:
- Sets the
NetworkStatusofResilienceEnvironment.Defaultto aMauiNetworkStatus. The device is online when MAUI reportsNetworkAccess.Internet. Going offline only counts after one second without coming back (OfflineDelay), because platform connectivity events flap while the device switches networks. - Sets its
AppLifecycleto aMauiAppLifecycle, fed byOnResume/OnStopon Android,OnActivated/DidEnterBackgroundon iOS and window visibility on Windows, where the app counts as in the background only while none of its windows is visible. - Registers the environment,
INetworkStatus,IAppLifecycle,TimeProviderandResiliencePipelineRegistryas singletons. Constructor injection of any of them works in a MAUI app with no more setup.
Other hosts don't need this package: set ResilienceEnvironment.Default at startup and register what they inject themselves.
Pipelines and the other components capture the environment when they are built or created, so call it in MauiProgram before anything builds one. The optional callback sets a Listener for resilience events, the TimeProvider and the OfflineDelay.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net10.0-windows10.0.19041 is compatible. |
-
net10.0
- Microsoft.Maui.Controls (>= 10.0.110)
- Neuro.AppToolkit.Resilience (>= 0.1.0-preview.2)
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.110)
- Neuro.AppToolkit.Resilience (>= 0.1.0-preview.2)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.110)
- Neuro.AppToolkit.Resilience (>= 0.1.0-preview.2)
-
net10.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 10.0.110)
- Neuro.AppToolkit.Resilience (>= 0.1.0-preview.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.2 | 75 | 10/28/2026 |