public DnsMiddleware(RequestDelegate next, IDnsClient dnsClient, IDnsMiddlewareConfig middlewareConfig) { _next = next; _dnsClient = dnsClient; _middlewareConfig = middlewareConfig; }
public DnsHttpServer(IDnsClient dnsClient, Func <IWebHostBuilder, IWebHostBuilder> configureBuilder, IDnsMiddlewareConfig middlewareConfig) { _dnsClient = dnsClient; _configureBuilder = configureBuilder; _middlewareConfig = middlewareConfig; }