Ejemplo n.º 1
0
        public static Endpoint FromNative(Knuth.Native.Config.Endpoint native)
        {
            var res = new Endpoint();

            res.Scheme = native.scheme;
            res.Host   = native.host;
            res.Port   = native.port;
            return(res);
        }
Ejemplo n.º 2
0
        public Knuth.Native.Config.Endpoint ToNative()
        {
            var native = new Knuth.Native.Config.Endpoint();

            native.scheme = this.Scheme;
            native.host   = this.Host;
            native.port   = this.Port;
            return(native);
        }
Ejemplo n.º 3
0
        public static Endpoint FromNative(Knuth.Native.Config.Endpoint native)
        {
            var res = new Endpoint();

            // res.Scheme = Helper.PtrToString(native.scheme);
            // res.Host = Helper.PtrToString(native.host);
            res.Scheme = native.scheme;
            res.Host   = native.host;
            res.Port   = native.port;
            return(res);
        }
Ejemplo n.º 4
0
        public Knuth.Native.Config.Endpoint ToNative()
        {
            var native = new Knuth.Native.Config.Endpoint();

            // native.scheme = Helper.StringToPtr(this.Scheme);
            // native.host = Helper.StringToPtr(this.Host);

            native.scheme = this.Scheme;
            native.host   = this.Host;
            native.port   = this.Port;
            return(native);
        }