UrlUtilityPrepareWorkingServerUrl Method

Parses the specified string as an absolute URI and preserves only its starting part which can be considered as valid WorkingServerUrl.

  • Unless the string is parsed as Uri of type Absolute it is returned without any changes.
  • If a valid culture name is found in AbsolutePath then the found culture name and all subsequent path segments are removed.
  • Query is always removed.

Definition

Namespace: SMath.Manager.Network
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.2.9018.0
C#
public static string PrepareWorkingServerUrl(
	string url
)

Parameters

url  String
URL string to handle.

Return Value

String
URL which is prepared for use in WorkingServerUrl property.

See Also