示例#1
0
        public Uri ResolveServiceMetadata(
            Uri location,
            ParticipantIdentifier participantIdentifier,
            DocumentTypeIdentifier documentTypeIdentifier)
        {
            var relativeUriText =
                $"/{participantIdentifier.Urlencoded()}/services/{documentTypeIdentifier.Urlencoded()}";
            var relativeUri = new Uri(relativeUriText, UriKind.Relative);

            return(new Uri(location, relativeUri));
        }
示例#2
0
        public Uri ResolveDocumentIdentifiers(Uri location, ParticipantIdentifier participant)
        {
            var relativeUri = new Uri($"/{participant.Urlencoded()}");

            return(new Uri(location, relativeUri));
        }