Neuro.AppToolkit.Resilience.Maui 0.1.0-preview.2

This is a prerelease version of Neuro.AppToolkit.Resilience.Maui.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Neuro.AppToolkit.Resilience.Maui" Version="0.1.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Neuro.AppToolkit.Resilience.Maui" Version="0.1.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="Neuro.AppToolkit.Resilience.Maui" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Neuro.AppToolkit.Resilience.Maui --version 0.1.0-preview.2
                    
#r "nuget: Neuro.AppToolkit.Resilience.Maui, 0.1.0-preview.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Neuro.AppToolkit.Resilience.Maui@0.1.0-preview.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Neuro.AppToolkit.Resilience.Maui&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Neuro.AppToolkit.Resilience.Maui&version=0.1.0-preview.2&prerelease
                    
Install as a Cake Tool

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 NetworkStatus of ResilienceEnvironment.Default to a MauiNetworkStatus. The device is online when MAUI reports NetworkAccess.Internet. Going offline only counts after one second without coming back (OfflineDelay), because platform connectivity events flap while the device switches networks.
  • Sets its AppLifecycle to a MauiAppLifecycle, fed by OnResume/OnStop on Android, OnActivated/DidEnterBackground on 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, TimeProvider and ResiliencePipelineRegistry as 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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