Files
dnsmasq-webui/src/DnsmasqWebUI/Models/Contracts/ConfigSetSnapshot.cs
T
alex 3ae556168e Docs: XML comments for interfaces/models and README codebase overview
- Add XML summaries and params to service/client interfaces (IDnsmasqConfigService, IHostsFileService, ILeasesFileService, IReloadService, ILeasesCache, IStatusClient, IConfigSetClient, IReloadClient, IHostsClient, IDhcpHostsClient, ILeasesClient)
- Add <param> to Models/Contracts and Dnsmasq/EffectiveConfig records (ConfigSetSnapshot, HostsSnapshot, ManagedConfigContent, SaveWithReloadResult, ReloadResult, DnsmasqConfigSet, DnsmasqConfigSetEntry, LeasesResult, ReadOnlyHostsFile)
- Document HostEntry, DhcpHostEntry, LeaseEntry with type and property summaries
- Update README codebase overview to reflect refactored layout (Infrastructure/, Models/Config, Models/Contracts, Models/Dnsmasq, etc.)
2026-02-05 23:15:47 +10:00

20 lines
1.0 KiB
C#

using DnsmasqWebUI.Models.Dhcp;
using DnsmasqWebUI.Models.Dnsmasq;
using DnsmasqWebUI.Models.Dnsmasq.EffectiveConfig;
namespace DnsmasqWebUI.Models.Contracts;
/// <summary>Immutable snapshot from the config set cache: config set, effective config, sources, managed file content, and DHCP host entries (one read per refresh).</summary>
/// <param name="Set">Ordered config set (main + conf-file/conf-dir) and managed file paths.</param>
/// <param name="Config">Effective dnsmasq config built from all files.</param>
/// <param name="Sources">Source per field (file path, readonly) for UI tooltips.</param>
/// <param name="ManagedContent">Parsed lines and effective addn-hosts path of the managed config file.</param>
/// <param name="DhcpHostEntries">DHCP host entries read from the managed file.</param>
public record ConfigSetSnapshot(
DnsmasqConfigSet Set,
EffectiveDnsmasqConfig Config,
EffectiveConfigSources Sources,
ManagedConfigContent ManagedContent,
IReadOnlyList<DhcpHostEntry> DhcpHostEntries
);