Skip to content

Commit

Permalink
Adds missing ToString methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanedwardes committed Feb 11, 2024
1 parent 856a0d0 commit 36ec2d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Ae.Dns.Client/DnsUpdateClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,8 @@ void ChangeRecords(ICollection<DnsResourceRecord> records)
public void Dispose()
{
}

/// <inheritdoc/>
public override string ToString() => $"{nameof(DnsUpdateClient)}({_dnsZone})";
}
}
3 changes: 3 additions & 0 deletions src/Ae.Dns.Client/DnsZoneClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ public async Task<DnsMessage> Query(DnsMessage query, CancellationToken token =

return await _dnsClient.Query(query, token);
}

/// <inheritdoc/>
public override string ToString() => $"{nameof(DnsZoneClient)}({_dnsZone})";
}
}
3 changes: 3 additions & 0 deletions src/Ae.Dns.Protocol/Zone/DnsZone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public DnsZone(IEnumerable<DnsResourceRecord> records)
/// <inheritdoc/>
public Func<IDnsZone, Task> ZoneUpdated { get; set; } = zone => Task.CompletedTask;

/// <inheritdoc/>
public override string ToString() => Origin;

/// <inheritdoc/>
public async Task Update(Action<IList<DnsResourceRecord>> modification)
{
Expand Down

0 comments on commit 36ec2d8

Please sign in to comment.