Ejemplo n.º 1
0
        public IAsyncResult BeginConnect(AsyncCallback callback, object state)
        {
            proxyClient.CreateConnectionAsync(EndPoint.Address.ToString(), EndPoint.Port);
            var result = new ProxyConnectionResult(state, callback);

            pendingOperations.Enqueue(result);
            return(result);
        }
Ejemplo n.º 2
0
 public IAsyncResult BeginConnect(AsyncCallback callback, object state)
 {
     proxyClient.CreateConnectionAsync(EndPoint.Address.ToString(), EndPoint.Port);
     var result = new ProxyConnectionResult(state, callback);
     pendingOperations.Enqueue(result);
     return result;
 }