예제 #1
0
        public Task <SqlGetAsyncResponse> GetAsyncSearchAsync(Elastic.Clients.Elasticsearch.Id id, Action <SqlGetAsyncRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SqlGetAsyncRequestDescriptor(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SqlGetAsyncRequestDescriptor, SqlGetAsyncResponse>(descriptor));
        }
예제 #2
0
        public SqlGetAsyncResponse GetAsyncSearch(Elastic.Clients.Elasticsearch.Id id, Action <SqlGetAsyncRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SqlGetAsyncRequestDescriptor(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SqlGetAsyncRequestDescriptor, SqlGetAsyncResponse>(descriptor));
        }