Beispiel #1
0
        public static void RemoteAsyncCallBackUnlock(IAsyncResult ar)
        {
            AsyncUnlockDelegate del = (AsyncUnlockDelegate)((AsyncResult)ar).AsyncDelegate;

            try { del.EndInvoke(ar); }
            catch (Exception e) { Console.WriteLine("(ADD) COULD NOT REACH"); }
        }
Beispiel #2
0
        private IAsyncResult RemoteAsyncCallUnlock(TupleSpace space, HashSet <ITuple> locked, string id, int seq)
        {
            AsyncUnlockDelegate RemoteDel = new AsyncUnlockDelegate(space.Unlock);
            IAsyncResult        RemAr     = RemoteDel.BeginInvoke(locked, id, seq, RemoteAsyncCallBackUnlock, null);

            return(RemAr);
        }