Move SmtpSettings and PageFetcherSettings into their respective models projects
Settings classes now live in the -models project alongside DTOs and client interfaces, eliminating the Settings/ folder from both API projects. - SmtpSettings: email-api/Settings/ → email-api-models/Settings/ (namespace EmailApi.Models.Settings) - PageFetcherSettings: page-fetcher-api/Settings/ → page-fetcher-api-models/Settings/ (namespace PageFetcher.Models.Settings) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace Models.Settings;
|
namespace EmailApi.Models.Settings;
|
||||||
|
|
||||||
public sealed class SmtpSettings
|
public sealed class SmtpSettings
|
||||||
{
|
{
|
||||||
@@ -5,6 +5,7 @@ using Email.Data.Repositories.Contracts;
|
|||||||
using Email.Data.Services;
|
using Email.Data.Services;
|
||||||
using EmailApi.Services;
|
using EmailApi.Services;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using EmailApi.Models.Settings;
|
||||||
using Models.Settings;
|
using Models.Settings;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
using StartupHelpers;
|
using StartupHelpers;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using MailKit.Net.Smtp;
|
|||||||
using MailKit.Security;
|
using MailKit.Security;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
using MimeKit;
|
using MimeKit;
|
||||||
|
using EmailApi.Models.Settings;
|
||||||
using Models.Settings;
|
using Models.Settings;
|
||||||
|
|
||||||
namespace EmailApi.Services;
|
namespace EmailApi.Services;
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace PageFetcherApi.Settings;
|
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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user