-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Surrogate argument list in Minimal APIs #41325
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
Merged
brunolins16
merged 68 commits into
dotnet:main
from
brunolins16:brunolins16/issues/40712
May 12, 2022
Merged
Changes from 8 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
15b28dd
Core funcionality
brunolins16 dbf6e21
Changing the order
brunolins16 a9a724c
Not checking attribute from type
brunolins16 e768b4d
Code cleanup
brunolins16 4822214
Adding missing ParamCheckExpression
brunolins16 74010a2
Adding support for records and structs
brunolins16 8f5726c
change to a static local function
brunolins16 09bd872
Remove empty line
brunolins16 173c269
Updating APIExplorer
brunolins16 f018d10
Updating APIExplorer
brunolins16 0ee0a1c
Merge branch 'main' into brunolins16/issues/40712
brunolins16 b52b113
Updating OpenAPI
brunolins16 b441fc4
PR feedback
brunolins16 bb3a599
Updating comment
brunolins16 0b95125
Allowing attribute on classes
brunolins16 14b3eb9
Reducing initial memory allocation
brunolins16 b025c9a
Adding constructorinfo caching
brunolins16 6f8973a
Updating OpenAPI generator
brunolins16 a8a2c61
Updating APIExplorer
brunolins16 21f2fd2
Adding constructor cache
brunolins16 8956ff4
Renaming to SurrogateParameterInfo
brunolins16 1b8418e
Updating OpenAPI Generator
brunolins16 ec3046e
Updating ApiExplorer
brunolins16 4dd3a3e
Updating RequestDelegateFactory
brunolins16 8cbbeef
Adding initial test cases
brunolins16 423ff0d
Merge branch 'main' into brunolins16/issues/40712
brunolins16 c2f9c71
Rollback bad change
brunolins16 88a69ad
Fixing merge issues
brunolins16 e21d54f
Initial SurrogateParameterInfo tests
brunolins16 3ba8262
Adding surrogateparameterinfo tests
brunolins16 e50922c
Using Span
brunolins16 337debc
Adding FindConstructor unit tests
brunolins16 c2ecb71
Using span
brunolins16 39fb2ec
Updating error message
brunolins16 ba0fd73
Updating surrogateParameteInfo and fix unit test
brunolins16 2d0d8e2
Adding RequestDelegateFactory tests
brunolins16 cbbad7c
Code cleanup
brunolins16 a658532
code clean up
brunolins16 abb5982
code clean up
brunolins16 603ea24
Adding suppress
brunolins16 e49a28a
Adding trimming warning suppress
brunolins16 0591fa0
PR feeback
brunolins16 cc001b5
PR feeback
brunolins16 4a25037
Merge branch 'main' into brunolins16/issues/40712
brunolins16 68737ff
Mark types as sealed
brunolins16 8fce5b0
Seal SurrogateParameterInfo
brunolins16 1592141
Removing attribute from type
brunolins16 97ec99f
Merge branch 'brunolins16/issues/40712' of https://github.com/brunoli…
brunolins16 9458d60
API Review changes
brunolins16 358db2c
Updating documentation
brunolins16 6965cba
Renaming surrogateParameterInfo
brunolins16 55b26f2
Code cleanup
brunolins16 d6c9e63
Code cleanup
brunolins16 74df571
Code cleanup
brunolins16 a9cc186
Code cleanup
brunolins16 902b65c
Updating tests to include FromService in properties
brunolins16 f44773d
Renaming to BindPropertiesAsParameter
brunolins16 9d5bb1c
Renaming to BindParameterFromProperties
brunolins16 917a540
Adding more FromServices tests
brunolins16 8a67a74
PR Feedback
brunolins16 d7fe6af
PR Feeback
brunolins16 8a4ff7d
Merge branch 'main' into brunolins16/issues/40712
brunolins16 4086eff
Merging with latest OpenAPI changes
brunolins16 fbeb3a7
adding more tests
brunolins16 5bf792c
Update src/Shared/ParameterBindingMethodCache.cs
brunolins16 de5901e
Updating errormessag on unit tests
brunolins16 c7888a1
Updating errormessag on unit tests
brunolins16 f4b9354
PR Feedback
brunolins16 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
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| namespace Microsoft.AspNetCore.Http; | ||
|
|
||
| using System; | ||
|
|
||
| /// <summary> | ||
| /// | ||
| /// </summary> | ||
| [AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = false)] | ||
| public sealed class ParametersAttribute : Attribute | ||
| { | ||
| } |
This file contains hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.