private static void HandlePipelineException<TResponse>( ref TResponse response, PipelineException ex, IRequestPipeline pipeline, Node node, List<PipelineException> seenExceptions) where TResponse : class, IElasticsearchResponse, new() { if (response == null) response = ex.Response as TResponse; pipeline.MarkDead(node); seenExceptions.Add(ex); }
private static void HandlePipelineException <TResponse>( ref TResponse response, PipelineException ex, IRequestPipeline pipeline, Node node, ICollection <PipelineException> seenExceptions ) where TResponse : class, ITransportResponse, new() { if (response == null) { response = ex.Response as TResponse; } pipeline.MarkDead(node); seenExceptions.Add(ex); }