minor refactoring done.

This commit is contained in:
Shreyas Zare
2022-01-16 19:58:42 +05:30
parent e1f5a97b93
commit e8a7353075
6 changed files with 11 additions and 7 deletions

View File

@@ -17,12 +17,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using DnsServerCore.Dns.Zones;
using System;
using System.Collections.Generic;
using System.Threading;
using TechnitiumLibrary.Net.Dns.ResourceRecords;
namespace DnsServerCore.Dns.Zones
namespace DnsServerCore.Dns.Trees
{
class AuthZoneNode : IDisposable
{

View File

@@ -17,12 +17,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using DnsServerCore.Dns.Zones;
using System;
using System.Collections.Generic;
using System.Threading;
using TechnitiumLibrary.Net.Dns.ResourceRecords;
namespace DnsServerCore.Dns.Zones
namespace DnsServerCore.Dns.Trees
{
class AuthZoneTree : ZoneTree<AuthZoneNode, SubDomainZone, ApexZone>
{

View File

@@ -17,9 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using DnsServerCore.Dns.Zones;
using System;
namespace DnsServerCore.Dns.Zones
namespace DnsServerCore.Dns.Trees
{
class CacheZoneTree : ZoneTree<CacheZone, CacheZone, CacheZone>
{

View File

@@ -21,7 +21,7 @@ using System;
using System.Text;
using TechnitiumLibrary.ByteTree;
namespace DnsServerCore.Dns.Zones
namespace DnsServerCore.Dns.Trees
{
class DomainTree<T> : ByteTree<string, T> where T : class
{

View File

@@ -1,6 +1,6 @@
/*
Technitium DNS Server
Copyright (C) 2020 Shreyas Zare (shreyas@technitium.com)
Copyright (C) 2022 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
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
namespace DnsServerCore.Dns.Zones
namespace DnsServerCore.Dns.Trees
{
public class InvalidDomainNameException : DnsServerException
{

View File

@@ -17,11 +17,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using DnsServerCore.Dns.Zones;
using System;
using System.Collections.Generic;
using System.Threading;
namespace DnsServerCore.Dns.Zones
namespace DnsServerCore.Dns.Trees
{
abstract class ZoneTree<TNode, TSubDomainZone, TApexZone> : DomainTree<TNode> where TNode : class where TSubDomainZone : Zone where TApexZone : Zone
{