sdk/dotnet/src/Microsoft.Datasync.Client/Utils/StdLibExtensions.cs
/// <summary>
/// Normalize an endpoint by removing any query and fragment, then ensuring that the
/// path has a trailing slash.
/// </summary>
/// <param name="endpoint">The endpoint to normalize.</param>
/// <returns>The normalized endpoint.</returns>
Normalize an endpoint by removing any query and fragment, then ensuring that the
path has a trailing slash.
Normalize an endpoint by removing any query and fragment then ensuring that the path has a trailing slash .
internal static Uri NormalizeEndpoint(this Uri endpoint)
        {
            Arguments.IsValidEndpoint(endpoint, nameof(endpoint));
            var builder = new UriBuilder(endpoint) { Query = string.Empty, Fragment = string.Empty };
            builder.Path = builder.Path.TrimEnd('/') + "/";
            return builder.Uri;
        }
internal static Uri NormalizeEndpoint ( this Uri endpoint ) { Arguments . IsValidEndpoint ( endpoint , nameof ( endpoint ) ) ; var builder = new UriBuilder ( endpoint ) { Query = string . Empty , Fragment = string . Empty } ; builder . Path = builder . Path . TrimEnd ( ' ' ) + " " ; return builder . Uri ; }
Normalize an endpoint by removing any query and fragment, then ensuring that the
path has a trailing slash.
Normalize an endpoint by removing any query and fragment then ensuring that the path has a trailing slash .
The normalized endpoint.
The normalized endpoint .
Uri
this
endpoint
The endpoint to normalize.
The endpoint to normalize .