コード例 #1
0
        public Task <SnapshotRestoreResponse> RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action <SnapshotRestoreRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SnapshotRestoreRequestDescriptor(repository, snapshot);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SnapshotRestoreRequestDescriptor, SnapshotRestoreResponse>(descriptor));
        }
コード例 #2
0
        public SnapshotRestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action <SnapshotRestoreRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SnapshotRestoreRequestDescriptor(repository, snapshot);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SnapshotRestoreRequestDescriptor, SnapshotRestoreResponse>(descriptor));
        }