Delegate SharedDnsResolverCallbackAsync
A delegate to an asynchronous callback which returns an array pointer of DnsARecordResult struct for resolving DNS A/AAAA Record query.
public delegate nint SharedDnsResolverCallbackAsync(char* hostname, int hostnameLength, void** cancelCallback)
Parameters
hostnamechar*[In] A hostname to query the A/AAAA record to.
hostnameLengthint- A delegate to an asynchronous callback which returns an array pointer of struct for resolving DNS A/AAAA Record query.
cancelCallbackvoid**[Out] A callback in which invoked, will be cancelling the async operation of the resolver.
Returns
- nint
A pointer to ComAsyncResult in which returns the pointer (nint) of the DnsARecordResult struct.