Example #1
0
 public void processResult(CuratorFramework client, ICuratorEvent @event)
 {
     _service.execute(RunnableUtils.FromFunc(() =>
     {
         try
         {
             _callback.processResult(_client, @event);
         }
         catch (Exception e)
         {
             ThreadUtils.checkInterrupted(e);
             var keeperException = e as KeeperException;
             if (keeperException != null)
             {
                 _client.validateConnection(_client.codeToState(keeperException));
             }
             _client.logError("Background operation result handling threw exception", e);
         }
     }));
 }