Пример #1
0
        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);
            }
        }
Пример #2
0
 public void start(BAsyncResult <bool> asyncResult, bool startR)
 {
     this.startRVal = startR;
     getTransport().negotiateProtocolClient(BAsyncResultHelper.FromDelegate <bool>(asyncResult));
 }