Exemple #1
0
        public void beginGetFingerTable(AsyncCallback getFingerTableCallBack, Object appState)
        {
            Console.WriteLine("ChordRealNode::beginGetFingerTable ENTER");

            ChordCommon.IChordNodeArray_Object iNodeArray_Object = new ChordCommon.IChordNodeArray_Object();
            iNodeArray_Object.nodeArray = engine.getFingerTable();
            iNodeArray_Object.obj       = appState;

            if (!(getFingerTableCallBack == null))
            {
                IAsyncResult res = new ChordCommon.IChordNodeArray_ObjectAsyncResult(iNodeArray_Object, false, true);
                getFingerTableCallBack(res);
            }
        }
Exemple #2
0
        public void beginGetFingerTable(AsyncCallback getFingerTableCallBack, Object appState)
        {
            Console.WriteLine("ChordRealNode::beginGetFingerTable ENTER");

            ChordCommon.IChordNodeArray_Object iNodeArray_Object = new ChordCommon.IChordNodeArray_Object();
            iNodeArray_Object.nodeArray = engine.getFingerTable();
            iNodeArray_Object.obj = appState;

            if (!(getFingerTableCallBack == null))
            {
                IAsyncResult res = new ChordCommon.IChordNodeArray_ObjectAsyncResult(iNodeArray_Object, false, true);
                getFingerTableCallBack(res);
            }
        }