public ClientBootstrap(EventLoopGroup eventLoopGroup, HostResolver hostResolver = null) { if (hostResolver == null) { hostResolver = new DefaultHostResolver(eventLoopGroup); } NativeHandle = API.make_new(eventLoopGroup.NativeHandle.DangerousGetHandle(), hostResolver.NativeHandle.DangerousGetHandle()); }
public DefaultHostResolver(EventLoopGroup eventLoopGroup, int maxHosts = 64) : base(API.make_new_default(eventLoopGroup.NativeHandle.DangerousGetHandle(), maxHosts)) { }