private static void Ping(IRequestPipeline pipeline, Node node, List <PipelineException> seenExceptions) { try { pipeline.Ping(node); } catch (PipelineException e) when(e.Recoverable) { pipeline.SniffOnConnectionFailure(); e.RethrowKeepingStackTrace(); } }
private static void Ping(IRequestPipeline pipeline, Node node) { try { pipeline.Ping(node); } catch (PipelineException e) when(e.Recoverable) { pipeline.SniffOnConnectionFailure(); throw; } }
private void Ping(IRequestPipeline pipeline, Node node) { try { pipeline.Ping(node); } catch (PipelineException e) when(e.Recoverable) { if (_productRegistration.SupportsSniff) { pipeline.SniffOnConnectionFailure(); } throw; } }