Zone: added another protected constructor to allow reloading cache zone.

This commit is contained in:
Shreyas Zare
2023-01-14 14:41:42 +05:30
parent 1dd35f68e9
commit 507f596fc8

View File

@@ -1,6 +1,6 @@
/*
Technitium DNS Server
Copyright (C) 2022 Shreyas Zare (shreyas@technitium.com)
Copyright (C) 2023 Shreyas Zare (shreyas@technitium.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -50,6 +50,12 @@ namespace DnsServerCore.Dns.Zones
_entries = new ConcurrentDictionary<DnsResourceRecordType, IReadOnlyList<DnsResourceRecord>>(1, capacity);
}
protected Zone(string name, ConcurrentDictionary<DnsResourceRecordType, IReadOnlyList<DnsResourceRecord>> entries)
{
_name = name.ToLower();
_entries = entries;
}
#endregion
#region static