Beispiel #1
0
        protected virtual void OnNavigationError(INavigationError navigationError)
        {
            Console.WriteLine("A Navigation Error was encountered from the Default Error Handler PrismApplication.OnNavigationError");

            var parameters = navigationError.Parameters is null ? string.Empty : Serialize(navigationError.Parameters);

            Container.Resolve <ICrashesService>().Report(navigationError.Exception, ("navigationParameters", parameters), ("navigationUri", navigationError.NavigationUri));
        }
        protected override void OnNavigationError(INavigationError navigationError)
        {
#if DEBUG
            // Ensure we always break here while debugging!
            Debugger.Break();
#else
            Helpers.Logger.Write(navigationError.Exception)(
                new[] { (nameof(navigationError.NavigationUri), navigationError.NavigationUri) }