mirror of
https://github.com/alexhopeoconnor/bom-local-service.git
synced 2026-10-03 21:21:59 +10:00
Align selectors and workflow with the step-through scrubber, share scrub display timestamp parsing via IScrubDisplayTimestampParser, fix pause post-click label verification, and stop cancelling background cache updates when the HTTP request ends. Version bumped to 0.0.4.
28 lines
929 B
C#
28 lines
929 B
C#
using BomLocalService.Services.Interfaces.Registration;
|
|
using BomLocalService.Services.Scraping;
|
|
using Microsoft.Playwright;
|
|
|
|
namespace BomLocalService.Services.Interfaces;
|
|
|
|
/// <summary>
|
|
/// Parses the BOM scrubber time display label to UTC; shared by capture and reset steps.
|
|
/// </summary>
|
|
public interface IScrubDisplayTimestampParser : ISingletonService
|
|
{
|
|
Task<DateTime?> ReadUtcAsync(
|
|
IPage page,
|
|
ISelectorService selectorService,
|
|
ScrapingContext? context = null,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
bool TryParseTimestamp(string timestampStr, string? timezoneAbbreviation, out DateTime timestampUtc);
|
|
|
|
Task WaitForDisplayLabelChangeAsync(
|
|
IPage page,
|
|
ISelectorService selectorService,
|
|
DateTime currentTimestamp,
|
|
ScrapingContext? context = null,
|
|
int maxWaitMs = 5000,
|
|
CancellationToken cancellationToken = default);
|
|
}
|