mirror of
https://github.com/AlexMacocian/Net.Maui.Extensions.git
synced 2026-07-15 14:59:31 +00:00
Fix ScopedApplicationShell registration
This commit is contained in:
@@ -56,7 +56,7 @@ public static class MauiAppBuilderExtensions
|
||||
public static MauiAppBuilder WithNavigation(this MauiAppBuilder appBuilder)
|
||||
{
|
||||
appBuilder.ThrowIfNull();
|
||||
appBuilder.Services.AddScoped<Shell, ScopedApplicationShell>();
|
||||
appBuilder.Services.AddScoped<Shell, ScopedApplicationShell>(sp => new ScopedApplicationShell(sp));
|
||||
appBuilder.Services.AddScoped<INavigationService, NavigationService>();
|
||||
|
||||
return appBuilder;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>true</IsPackable>
|
||||
<Version>0.2.0</Version>
|
||||
<Version>0.2.1</Version>
|
||||
<Authors>Alexandru Macocian</Authors>
|
||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
|
||||
Reference in New Issue
Block a user