/// <summary> /// Check whether the login is required by the LAN that this class represents. /// </summary> /// <returns>A value that indicates whether the login is required by the LAN that this class represents.</returns> /// <exception cref="HttpRequestException">In a network error.</exception> public override async Task <bool> IsLoginRequiredAsync() { using (var http = new HttpClient()) { // Throws HttpRequestException in a network error. var response = await http.GetAsync(HeartbeatUri); var actualUri = response.RequestMessage.RequestUri; return(actualUri != null && LoginUri.StartsWith(actualUri.OriginalString)); } }
public LoginUriView(LoginUri u) { Match = u.Match; }
public LoginUriType(LoginUri u) { Uri = u.Uri?.EncryptedString; Match = u.Match; }
public LoginUriModel(LoginUri data, string orgId) { Uri = data?.Uri?.Decrypt(orgId); Match = data?.Match; }