Esempio n. 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));
        }
Esempio n. 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));
        }