Ejemplo n.º 1
0
        public ClientBootstrap(EventLoopGroup eventLoopGroup, HostResolver hostResolver = null)
        {
            if (hostResolver == null)
            {
                hostResolver = new DefaultHostResolver(eventLoopGroup);
            }

            NativeHandle = API.make_new(eventLoopGroup.NativeHandle.DangerousGetHandle(), hostResolver.NativeHandle.DangerousGetHandle());
        }
Ejemplo n.º 2
0
 public DefaultHostResolver(EventLoopGroup eventLoopGroup, int maxHosts = 64)
     : base(API.make_new_default(eventLoopGroup.NativeHandle.DangerousGetHandle(), maxHosts))
 {
 }