Table of Contents

Class AuthorityUtility

Namespace
Fluxzy.Utils
Assembly
Fluxzy.Core.dll
public static class AuthorityUtility
Inheritance
AuthorityUtility
Inherited Members

Methods

TryParse(string, out string?, out int)

Parse an authority, accepted separator are ':' and '/'.

public static bool TryParse(string rawValue, out string? host, out int port)

Parameters

rawValue string
host string
port int

Returns

bool

TryParseIp(string, out IPAddress?, out int)

Parse an authority, accepted separator are ':' and '/'. Authority must me a valid IPv4 or IPv6 address.

public static bool TryParseIp(string rawValue, out IPAddress? ip, out int port)

Parameters

rawValue string
ip IPAddress
port int

Returns

bool