private IAsyncResult RemoteAsyncCallAdd(Node node, ITuple tuple) { AsyncAddDelegate RemoteDel = new AsyncAddDelegate(node.AddS); IAsyncResult RemAr = RemoteDel.BeginInvoke(tuple, RemoteAsyncCallBackAdd, null); return(RemAr); }
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"); } }
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); }
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(); }
public static void RemoteAsyncCallBackAdd(IAsyncResult ar) { AsyncAddDelegate del = (AsyncAddDelegate)((AsyncResult)ar).AsyncDelegate; try { del.EndInvoke(ar); }catch (Exception ex) { return; } //throw new NotImplementedException(); }
public static void RemoteAsyncCallBackAdd(IAsyncResult ar) { AsyncAddDelegate del = (AsyncAddDelegate)((AsyncResult)ar).AsyncDelegate; del.EndInvoke(ar); }