예제 #1
0
        private IAsyncResult RemoteAsyncCallAdd(Node node, ITuple tuple)
        {
            AsyncAddDelegate RemoteDel = new AsyncAddDelegate(node.AddS);
            IAsyncResult     RemAr     = RemoteDel.BeginInvoke(tuple, RemoteAsyncCallBackAdd, null);

            return(RemAr);
        }
예제 #2
0
        public static void RemoteAsyncCallBackAdd(IAsyncResult ar)
        {
            AsyncAddDelegate del = (AsyncAddDelegate)((AsyncResult)ar).AsyncDelegate;

            try { del.EndInvoke(ar); }
            catch (Exception e) { Console.WriteLine("(ADD) COULD NOT REACH"); }
        }
예제 #3
0
        private IAsyncResult RemoteAsyncCallAdd(TupleSpace space, ITuple tuple, string id, int seq)
        {
            AsyncAddDelegate RemoteDel = new AsyncAddDelegate(space.Add);
            IAsyncResult     RemAr     = RemoteDel.BeginInvoke(tuple, id, seq, RemoteAsyncCallBackAdd, null);

            return(RemAr);
        }
예제 #4
0
        private IAsyncResult RemoteAsyncCallAdd(Node node, ITuple tuple)
        {
            AsyncAddDelegate RemoteDel = new AsyncAddDelegate(node.AddS);
            IAsyncResult     RemAr     = RemoteDel.BeginInvoke(tuple, RemoteAsyncCallBackAdd, null);

            return(RemAr);
            //throw new NotImplementedException();
        }
예제 #5
0
        public static void RemoteAsyncCallBackAdd(IAsyncResult ar)
        {
            AsyncAddDelegate del = (AsyncAddDelegate)((AsyncResult)ar).AsyncDelegate;

            try
            {
                del.EndInvoke(ar);
            }catch (Exception ex) { return; }

            //throw new NotImplementedException();
        }
예제 #6
0
        public static void RemoteAsyncCallBackAdd(IAsyncResult ar)
        {
            AsyncAddDelegate del = (AsyncAddDelegate)((AsyncResult)ar).AsyncDelegate;

            del.EndInvoke(ar);
        }