Show / Hide Table of Contents

Interface IResolver

Answers a question.

Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public interface IResolver

Methods

| Improve this Doc View Source

ResolveAsync(Message, CancellationToken)

Get an answer to a question.

Declaration
Task<Message> ResolveAsync(Message request, CancellationToken cancel = default(CancellationToken))
Parameters
Type Name Description
Message request

A Message containing a Question that needs to be answered.

CancellationToken cancel

Is used to stop the task. When cancelled, the TaskCanceledException is raised.

Returns
Type Description
Task<Message>

A task that represents the asynchronous operation. The task's value is the Message response to the request.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX