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

Strong typing for links to methods with body (complex param) #6

Merged
merged 3 commits into from Aug 26, 2014

Conversation

@filipw
Copy link
Contributor

commented Aug 26, 2014

Added a Param class to allow strong typing instead of having to pass nulls (similar to what I used in TypedRouting).

For example, instead of, maker.UriFor(c => c.Post(null)) you can now say maker.UriFor(c => c.Post(Param<ResourceDto>.Any))

Semantically this doesn't change anything, it's just syntactic sugar.
The benefit is if you ever change your signature from ResourceDto to something else, the code will not compile (which might be the case with nulls).

Also updated readme - removed refernce to FlowUriMakerContextOnRequests

pmhsfelix added a commit that referenced this pull request Aug 26, 2014

Merge pull request #6 from filipw/feature/param
Strong typing for links to methods with body (complex param)

@pmhsfelix pmhsfelix merged commit ac30aa8 into pmhsfelix:master Aug 26, 2014

1 check passed

continuous-integration/appveyor AppVeyor build succeeded
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.