Beispiel #1
0
        public Task <SqlGetAsyncStatusResponse> GetAsyncSearchStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action <SqlGetAsyncStatusRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SqlGetAsyncStatusRequestDescriptor(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SqlGetAsyncStatusRequestDescriptor, SqlGetAsyncStatusResponse>(descriptor));
        }
Beispiel #2
0
        public SqlGetAsyncStatusResponse GetAsyncSearchStatus(Elastic.Clients.Elasticsearch.Id id, Action <SqlGetAsyncStatusRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SqlGetAsyncStatusRequestDescriptor(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SqlGetAsyncStatusRequestDescriptor, SqlGetAsyncStatusResponse>(descriptor));
        }