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"); } }
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); }