public Task <SnapshotGetRepositoryResponse> GetRepositoryAsync(Action <SnapshotGetRepositoryRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new SnapshotGetRepositoryRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <SnapshotGetRepositoryRequestDescriptor, SnapshotGetRepositoryResponse>(descriptor)); }
public SnapshotGetRepositoryResponse GetRepository(Action <SnapshotGetRepositoryRequestDescriptor> configureRequest = null) { var descriptor = new SnapshotGetRepositoryRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <SnapshotGetRepositoryRequestDescriptor, SnapshotGetRepositoryResponse>(descriptor)); }