Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using Project parameter at the Client constructor #30

Open
pbelousov opened this issue Jun 5, 2019 · 0 comments
Open

Avoid using Project parameter at the Client constructor #30

pbelousov opened this issue Jun 5, 2019 · 0 comments

Comments

@pbelousov
Copy link

pbelousov commented Jun 5, 2019

Hi,

Azure DevOps supports working with different Team Projects. And it looks like your Client type should not ask to provide Project parameter at the constructor (NewClient method) because there are [several APIs|https://docs.microsoft.com/en-us/rest/api/azure/devops/core/] which don't require projects at all. And it looks more consistent to pass Project only when you want to work with exact one project.

So right now Client describes a class for working with just one project but maybe it would be useful to have a separate type which will work with Azure DevOps in general and will be able to return your current "project" client.

Thank you in advance!

@pbelousov pbelousov changed the title Is there a method for getting a list of projects? Avoid using Project parameter at the Client constructor Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant