Ejemplo n.º 1
0
        public void nodeReplicationCallBack(IAsyncResult ar)
        {
            bool p = false;
            nodeReplicationAsync rad = (nodeReplicationAsync)((AsyncResult)ar).AsyncDelegate;

            p = (bool)rad.EndInvoke(ar);
        }
Ejemplo n.º 2
0
        private INodeOperator replicateTuplesToNode(string remoteLocation)
        {
            INodeOperator        nodeOp        = (INodeOperator)Activator.GetObject(typeof(INodeOperator), remoteLocation);
            AsyncCallback        asyncCallback = new AsyncCallback(this.nodeReplicationCallBack);
            nodeReplicationAsync remoteDel     = new nodeReplicationAsync(nodeOp.replicateTuples);
            IAsyncResult         ar            = remoteDel.BeginInvoke(OutputTuples,
                                                                       asyncCallback, null);

            return(nodeOp);
        }