示例#1
0
        public override IAsyncResult BeginConnect(System.Net.EndPoint endPoint, AsyncCallback callback, Object state)
        {
            ConnectWrapper lWrapper = new ConnectWrapper(callback, state);

            this.fInnerConnection.BeginConnect(endPoint, new AsyncCallback(lWrapper.ConnectionConnect), this);

            return(lWrapper);
        }
示例#2
0
        public override IAsyncResult BeginConnect(System.Net.EndPoint endPoint, AsyncCallback callback, Object state)
        {
            ConnectWrapper lWrapper = new ConnectWrapper(callback, state);
            this.fInnerConnection.BeginConnect(endPoint, new AsyncCallback(lWrapper.ConnectionConnect), this);

            return lWrapper;
        }