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

Change AddDefaultParameter methods to be extension methods #311

Merged
merged 1 commit into from
Aug 30, 2012

Conversation

haacked
Copy link
Contributor

@haacked haacked commented Aug 10, 2012

The AddDefaultParameter methods of RestClient don't need access to any private members or fields. They only need access to the DefaultParameters which is defined on IRestClient.

By turning these into extension methods, the IRestClient interface is easier to implement and all implementations of IRestClient get the benefit of these methods, not just RestClient.

Makes implementing a custom IRestClient easier since these methods don't
need to be reimplemented. They don't need access to any private methods
or fields.
@ayoung
Copy link
Contributor

ayoung commented Aug 13, 2012

I'm fine with this change. It'll need a major version bump.

@ayoung ayoung merged commit d70f9c9 into restsharp:master Aug 30, 2012
@ayoung
Copy link
Contributor

ayoung commented Aug 30, 2012

Alright its in. Found it odd that there were merge issues for something this simple and noticed that your fork is ~7 mo behind. Rebase?

Anyways, thanks!

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

Successfully merging this pull request may close these issues.

2 participants