-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Surrogate argument list in Minimal APIs (#41325)
* Core funcionality * Changing the order * Not checking attribute from type * Code cleanup * Adding missing ParamCheckExpression * Adding support for records and structs * change to a static local function * Remove empty line * Updating APIExplorer * Updating APIExplorer * Updating OpenAPI * PR feedback * Updating comment * Allowing attribute on classes * Reducing initial memory allocation * Adding constructorinfo caching * Updating OpenAPI generator * Updating APIExplorer * Adding constructor cache * Renaming to SurrogateParameterInfo * Updating OpenAPI Generator * Updating ApiExplorer * Updating RequestDelegateFactory * Adding initial test cases * Rollback bad change * Fixing merge issues * Initial SurrogateParameterInfo tests * Adding surrogateparameterinfo tests * Using Span * Adding FindConstructor unit tests * Using span * Updating error message * Updating surrogateParameteInfo and fix unit test * Adding RequestDelegateFactory tests * Code cleanup * code clean up * code clean up * Adding suppress * Adding trimming warning suppress * PR feeback * PR feeback * Mark types as sealed * Seal SurrogateParameterInfo * Removing attribute from type * API Review changes * Updating documentation * Renaming surrogateParameterInfo * Code cleanup * Code cleanup * Code cleanup * Code cleanup * Updating tests to include FromService in properties * Renaming to BindPropertiesAsParameter * Renaming to BindParameterFromProperties * Adding more FromServices tests * PR Feedback * PR Feeback * Merging with latest OpenAPI changes * adding more tests * Update src/Shared/ParameterBindingMethodCache.cs Co-authored-by: Brennan <brecon@microsoft.com> * Updating errormessag on unit tests * Updating errormessag on unit tests * PR Feedback Co-authored-by: Brennan <brecon@microsoft.com>
- Loading branch information
1 parent
c014e81
commit 65bb1ec
Showing
23 changed files
with
1,839 additions
and
31 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// 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> | ||
/// Specifies that a route handler delegate's parameter represents a structured parameter list. | ||
/// </summary> | ||
[AttributeUsage( | ||
AttributeTargets.Parameter, | ||
Inherited = false, | ||
AllowMultiple = false)] | ||
public sealed class AsParametersAttribute : Attribute | ||
{ | ||
} |
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
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
Oops, something went wrong.