Пример #1
0
        public Task <LogstashDeletePipelineResponse> DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action <LogstashDeletePipelineRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new LogstashDeletePipelineRequestDescriptor(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <LogstashDeletePipelineRequestDescriptor, LogstashDeletePipelineResponse>(descriptor));
        }
Пример #2
0
        public LogstashDeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action <LogstashDeletePipelineRequestDescriptor> configureRequest = null)
        {
            var descriptor = new LogstashDeletePipelineRequestDescriptor(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <LogstashDeletePipelineRequestDescriptor, LogstashDeletePipelineResponse>(descriptor));
        }