コード例 #1
0
        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));
        }
コード例 #2
0
        public SnapshotGetRepositoryResponse GetRepository(Action <SnapshotGetRepositoryRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SnapshotGetRepositoryRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SnapshotGetRepositoryRequestDescriptor, SnapshotGetRepositoryResponse>(descriptor));
        }