private Uri BuildPath(NavigationEvent navigationEvent)
        {
            var uriString = string.Format("{0}?{1}={2}", navigationEvent.Destination.OriginalString, Key,
                                          HttpUtility.UrlEncode(navigationEvent.Context));
            var path = new Uri(uriString, UriKind.Relative);

            return(path);
        }
        private NavigationEvent BuildNavigationEvent(NavigationContext navigationContext, Uri uri)
        {
            var serializedContext = Serializer.Serialize(navigationContext);
            var encoded           = Base64Encode(serializedContext);

            var navigationEvent = new NavigationEvent
            {
                Context     = encoded,
                Destination = uri
            };

            return(navigationEvent);
        }
        private NavigationEvent BuildNavigationEvent <TData>(NavigationContext <TData> navigationContext, Uri uri)
        {
            var serializedContext = Serializer.Serialize(navigationContext);

            Debug.WriteLine("NavigationService::serialized context " + serializedContext);
            var encoded = Base64Encode(serializedContext);

            var navigationEvent = new NavigationEvent
            {
                Context     = encoded,
                Destination = uri
            };

            return(navigationEvent);
        }