Created
December 24, 2021 15:56
-
-
Save roubachof/b127000a91e5054dfd73179344da2ecc to your computer and use it in GitHub Desktop.
Prism Navigation service with exceptions raised
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MyCompany | |
{ | |
public partial class App | |
{ | |
public App(IPlatformInitializer initializer) | |
: base(initializer) | |
{ | |
} | |
protected override void RegisterRequiredTypes(IContainerRegistry containerRegistry) | |
{ | |
base.RegisterRequiredTypes(containerRegistry); | |
containerRegistry.RegisterScoped<INavigationService, PageNavigationRaisingExceptionService>(); | |
containerRegistry.Register<INavigationService, PageNavigationRaisingExceptionService>(NavigationServiceName); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment