-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Infer default sources for parameters of minimal actions #31603
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
9b1f55e
Move and update MapActionSample
halter73 dfc2ae4
Remove redundant test cases
halter73 e3f9632
TestImpliedFromService
halter73 f156d54
Add RequestDelegatePopulatesUnattributedTryParseableParametersFromRou…
halter73 552b2ab
Get one test passing
halter73 7d0c813
Add RequestDelegatePopulatesUnattributedTryParseableParametersFromQue…
halter73 edbeffa
refactor
halter73 9bfb50a
RequestDelegateFactory logger category
halter73 ae4b823
refactor parameter binding
halter73 44e854a
more refactoring
halter73 b67a233
Get RequestDelegatePopulatesFromServiceParameterBasedOnParameterType …
halter73 f590c89
cleanup
halter73 b113bc2
Add CreateArgumentExpression
halter73 962fa65
Add RequestDelegateRequiresServiceForAllFromServiceParameters
halter73 299985f
Add tests
halter73 46714f1
Start using TryParse
halter73 bd6087c
Log TryParse Failures
halter73 1a0609d
Add WasTryParseFailureVariable
halter73 6781c2e
Add comments
halter73 37823bd
Set 400 StatusCode for TryParse failure
halter73 828e4dc
WIP
halter73 1b33b3a
Fix nullable handling. Add test cases
halter73 a849e03
Add enum support
halter73 5d7f7f4
Less Info, More Expr
halter73 ff6b843
Add custom record and enum to TryParse tests
halter73 0b283d1
Add tests for DelegatesWithInvalidAttributes
halter73 f7601b9
Test cleanup
halter73 1aabf29
Add CreateThrowsInvalidOperationExceptionGivenUnnamedArgument
halter73 25e98ba
Add tempSourceString to avoid reevaluation
halter73 7b50d32
Add TryParseMethodCache
halter73 4060f1b
oops
halter73 3fc546e
cleanup
halter73 d3cf3a8
simplify test cases
halter73 1b2e1a2
wasTryParseFailureVariable -> wasTryParseFailure
halter73 8e53897
Use Uri in MyTryParsableRecord test case
halter73 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add enum support
- Loading branch information
commit a849e03d8d820792a87eb1e5a1836ffaf7839b58
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm interested in feedback on this. One wrinkle is there isn't a standard convention for
TryParse
methods takingIFormatProvider
. For example,int.TryParse
and similar want aNumberStyles
argument as well for any overload takingIFormatProvider
. We can special-case built-in numeric types of course.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a topic that's up for debate. I think MVC does different things for different parts of the request.