示例#1
0
        public Task <EqlGetStatusResponse> GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action <EqlGetStatusRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new EqlGetStatusRequestDescriptor(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <EqlGetStatusRequestDescriptor, EqlGetStatusResponse>(descriptor));
        }
示例#2
0
        public EqlGetStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action <EqlGetStatusRequestDescriptor> configureRequest = null)
        {
            var descriptor = new EqlGetStatusRequestDescriptor(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <EqlGetStatusRequestDescriptor, EqlGetStatusResponse>(descriptor));
        }