Migration to EF and starting to add Identity #11

Merged
jtom38 merged 16 commits from features/ef-identity-migration into main 2023-07-09 22:19:01 -07:00
Showing only changes of commit 008d79cf3d - Show all commits

View File

@ -36,11 +36,19 @@ public class HtmlPageReader
private string ReadSiteContent(string url)
{
using var client = new HttpClient();
var html = client.GetStringAsync(url);
html.Wait();
try
{
var html = client.GetStringAsync(url);
html.Wait();
var content = html.Result;
return content;
var content = html.Result;
return content;
}
catch (Exception ex)
{
Console.WriteLine($"Failed to connect to '{url}'. {ex.Message}");
return "";
}
}
public string GetSiteContent()