AuthenticatedSseHelper.cs
1 namespace GUNRPG.WebClient.Helpers; 2 3 public static class AuthenticatedSseHelper 4 { 5 public static bool TryGetHttpsBaseUrl(string? baseUrl, out string? httpsBaseUrl) 6 { 7 httpsBaseUrl = null; 8 9 if (!Uri.TryCreate(baseUrl, UriKind.Absolute, out var uri) || 10 uri.Scheme != Uri.UriSchemeHttps) 11 { 12 return false; 13 } 14 15 httpsBaseUrl = baseUrl; 16 return true; 17 } 18 }