예제 #1
0
		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);
		}
예제 #2
0
 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);
 }