示例#1
0
        public Task <SearchableSnapshotsMountResponse> MountAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action <SearchableSnapshotsMountRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SearchableSnapshotsMountRequestDescriptor(repository, snapshot);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SearchableSnapshotsMountRequestDescriptor, SearchableSnapshotsMountResponse>(descriptor));
        }
示例#2
0
        public SearchableSnapshotsMountResponse Mount(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action <SearchableSnapshotsMountRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SearchableSnapshotsMountRequestDescriptor(repository, snapshot);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SearchableSnapshotsMountRequestDescriptor, SearchableSnapshotsMountResponse>(descriptor));
        }