using Chronos.Protocol.Client; namespace Chronos.Uploader.Server; /// Server addresses as typed in the sign-in form. public static class ServerAddress { /// /// Accepts "nas.local" (https on port 8443 assumed), "nas.local:9443" or a full http(s) URL, which keeps its scheme's /// port; the result is the API base, ending with "/" (, shared with the desktop client). /// public static bool TryParse(string? text, out Uri uri) => ChronosAddress.TryParse(text, out uri); }