Generating argument expressions for minimal APIs

2023-01-25

In this post, we dive into the generating argument expressions for minimal APIs. We explore the CreateArgument() method responsible for defining how model-binding works in minimal APIs. We look at half of the binding expressions in CreateArgument in this post, and half in the next post. This is the fourth post in the series: Behind the scenes of minimal APIs. The previous post explored the CreateArgument() method and showed how it is responsible for generating an Expression for the binding. We skipped over the Expression generation in the previous post, so we go into it in this post and look at the (effective) code that CreateArgument() generates. This post is a pretty long post that contains a table of contents. We also give a quick recap of RequestDelegateFactory.CreateArgument() and the rest of the series so far.

Link [ https://andrewlock.net/behind-the-scenes-of-minimal-apis-4-generating-argument-expressions-for-minimal-apis/ ]

Previous Article

Generating argument expressions for minimal APIs

2023-01-25

In this post, we dive into the generating argument expressions for minimal APIs. We explore the CreateArgument() method responsible for defining how model-binding works in minimal APIs. We look at half of the binding expressions in CreateArgument in this post, and half in the next post. This is the fourth post in the series: Behind the scenes of minimal APIs. The previous post explored the CreateArgument() method and showed how it is responsible for generating an Expression for the binding. We skipped over the Expression generation in the previous post, so we go into it in this post and look at the (effective) code that CreateArgument() generates. This post is a pretty long post that contains a table of contents. We also give a quick recap of RequestDelegateFactory.CreateArgument() and the rest of the series so far.

Link [ https://andrewlock.net/behind-the-scenes-of-minimal-apis-4-generating-argument-expressions-for-minimal-apis/ ]

Copyright © 2024 All rights reserved

Rss

Atom