private void reloginAndRetrySend <T>(BMethodRequest methodRequest, BAsyncResultIF <T> asyncResult) { try { BAsyncResult <bool> loginResult = (ignored, ex) => { if (ex != null) { asyncResult.setAsyncResult(default(T), ex); } else { assignSessionThenSendMethod(methodRequest, asyncResult); } }; negotiateProtocolClient(BAsyncResultHelper.FromDelegate(loginResult)); } catch (Exception ex) { asyncResult.setAsyncResult(default(T), ex); } }
public void start(BAsyncResult <bool> asyncResult, bool startR) { this.startRVal = startR; getTransport().negotiateProtocolClient(BAsyncResultHelper.FromDelegate <bool>(asyncResult)); }