Dela via


RequestUtilities.MakeDestinationAddress Method

Definition

Appends the given path and query to the destination prefix while avoiding duplicate '/'.

public static Uri MakeDestinationAddress (string destinationPrefix, Microsoft.AspNetCore.Http.PathString path, Microsoft.AspNetCore.Http.QueryString query);
static member MakeDestinationAddress : string * Microsoft.AspNetCore.Http.PathString * Microsoft.AspNetCore.Http.QueryString -> Uri
Public Shared Function MakeDestinationAddress (destinationPrefix As String, path As PathString, query As QueryString) As Uri

Parameters

destinationPrefix
String

The scheme, host, port, and optional path base for the destination server. e.g. "http://example.com:80/path/prefix"

path
PathString

The path to append.

query
QueryString

The query to append

Returns

Uri

Applies to