Updated scanner to infer when it has reached the end of results.
This commit is contained in:
12
JSMR.Infrastructure/Http/HtmlLoadResult.cs
Normal file
12
JSMR.Infrastructure/Http/HtmlLoadResult.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using HtmlAgilityPack;
|
||||
using System.Net;
|
||||
|
||||
namespace JSMR.Infrastructure.Http;
|
||||
|
||||
public sealed class HtmlLoadResult
|
||||
{
|
||||
public required HttpStatusCode StatusCode { get; init; }
|
||||
public HtmlDocument? Document { get; init; }
|
||||
|
||||
public bool IsSuccessStatusCode => (int)StatusCode is >= 200 and <= 299;
|
||||
}
|
||||
Reference in New Issue
Block a user