Move PageFetcherSettings to page-fetcher-api-models, consistent with EmailApiSettings pattern
Settings class now lives in Apis/page-fetcher-api-models/Settings/ with namespace PageFetcher.Models.Settings, matching how EmailApiSettings is placed in email-api-models/Settings/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace PageFetcherApi.Services;
|
namespace PageFetcher.Models.Settings;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Runtime settings for the page-fetcher service.
|
/// Runtime settings for the page-fetcher service.
|
||||||
@@ -2,7 +2,7 @@ using System.Reflection;
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using PageFetcher.Data;
|
using PageFetcher.Data;
|
||||||
using PageFetcherApi.Services;
|
using PageFetcherApi.Services;
|
||||||
using PageFetcherApi.Settings;
|
using PageFetcher.Models.Settings;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
using StartupHelpers;
|
using StartupHelpers;
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using Microsoft.Playwright;
|
|||||||
using PageFetcher.Data;
|
using PageFetcher.Data;
|
||||||
using PageFetcher.Data.Entities;
|
using PageFetcher.Data.Entities;
|
||||||
using PageFetcher.Models;
|
using PageFetcher.Models;
|
||||||
using PageFetcherApi.Settings;
|
using PageFetcher.Models.Settings;
|
||||||
|
|
||||||
namespace PageFetcherApi.Services;
|
namespace PageFetcherApi.Services;
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user