Skip to content

Commit

Permalink
feat(IDnsClient): is also a IResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Jul 19, 2018
1 parent 1b79fa6 commit 9b8a5ff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/DnsClientBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,13 @@ public void Dispose()
protected virtual void Dispose(bool disposing)
{
}

/// <summary>
/// Another name for <see cref="QueryAsync(Message, CancellationToken)"/>.
/// </summary>
public Task<Message> ResolveAsync(Message request, CancellationToken cancel = default(CancellationToken))
{
return QueryAsync(request, cancel);
}
}
}
2 changes: 1 addition & 1 deletion src/IDnsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Makaretu.Dns
/// Client interface to a DNS server.
/// </summary>
/// <seealso cref="DnsClientBase"/>
public interface IDnsClient : IDisposable
public interface IDnsClient : IDisposable, IResolver
{
/// <summary>
/// Determines if an exception is thrown when a response contains
Expand Down
2 changes: 1 addition & 1 deletion src/Udns.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<ItemGroup>
<PackageReference Include="Common.Logging" Version="3.4.1" />
<PackageReference Include="Makaretu.Dns" Version="0.11.0" />
<PackageReference Include="Makaretu.Dns" Version="0.13.1" />
<PackageReference Include="Nito.AsyncEx" Version="5.0.0-pre-05" />
</ItemGroup>

Expand Down

0 comments on commit 9b8a5ff

Please sign in to comment.