Move PageFetcherSettings to Settings/ folder, consistent with email-api pattern

Settings classes belong in Settings/ with namespace PageFetcherApi.Settings,
not Services/. Matches the SmtpSettings placement in email-api.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 17:51:51 +03:00
parent df011f2a03
commit 20b13647de
3 changed files with 19 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@ using System.Reflection;
using Microsoft.EntityFrameworkCore;
using PageFetcher.Data;
using PageFetcherApi.Services;
using PageFetcherApi.Settings;
using Serilog;
using StartupHelpers;
@@ -6,6 +6,7 @@ using Microsoft.Playwright;
using PageFetcher.Data;
using PageFetcher.Data.Entities;
using PageFetcher.Models;
using PageFetcherApi.Settings;
namespace PageFetcherApi.Services;
@@ -0,0 +1,17 @@
namespace PageFetcherApi.Settings;
/// <summary>
/// Runtime settings for the page-fetcher service.
/// Bound from the <c>PageFetcher</c> configuration section.
/// </summary>
public sealed class PageFetcherSettings
{
/// <summary>Default Playwright wait condition (<c>networkidle</c>, <c>load</c>, <c>domcontentloaded</c>).</summary>
public string DefaultWaitFor { get; set; } = "networkidle";
/// <summary>Page navigation timeout in seconds.</summary>
public int TimeoutSeconds { get; set; } = 30;
/// <summary>Maximum characters stored/returned in the extracted text field.</summary>
public int MaxTextChars { get; set; } = 60_000;
}