Example #1
0
 Send()
 {
     try
     {
         LocatorInfo.Locator.FindAdapterByIdAsync(Ref.GetAdapterId()).ContinueWith(
             (Task <IObjectPrx?> p) =>
         {
             try
             {
                 Response(p.Result);
             }
             catch (AggregateException ex)
             {
                 Exception(ex.InnerException);
             }
         });
     }
     catch (System.Exception ex)
     {
         Exception(ex);
     }
 }
 Send()
 {
     try
     {
         LocatorInfo.Locator.FindAdapterByIdAsync(Ref.GetAdapterId()).ContinueWith(
             (Task <IObjectPrx> p) =>
         {
             try
             {
                 Response(p.Result);
             }
             catch (AggregateException ex)
             {
                 Debug.Assert(ex.InnerException is Ice.Exception);
                 Exception((Ice.Exception)ex.InnerException);
             }
         });
     }
     catch (Ice.Exception ex)
     {
         Exception(ex);
     }
 }