Quantcast
Channel: Andrew Lock | .NET Escapades
Browsing all 743 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

The dangers and gotchas of using scoped services in OptionsBuilder

A quick reminder that my new book, ASP.NET Core in Action, Third Edition, is currently available in MEAP. Completely updated to .NET 7, minimal APIs and minimal hosting (but also covering Razor Pages,...

View Article


Image may be NSFW.
Clik here to view.

5 new MVC features in .NET 7

Many of the headline features introduced in ASP.NET Core in .NET 7 were about minimal APIs, such as route groups and filters. But just because minimal APIs were a big focus doesn't mean that MVC...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET Core in Action, Version 3 update

In this post I give a quick update on why my blog hasn't been as active as usual. The short answer is: I've been head down working on my new book, ASP.NET Core in Action, Third Edition! Your blog has...

View Article

Image may be NSFW.
Clik here to view.

A first look behind the scenes of minimal API endpoints: Behind the scenes of...

This is the first post in the series: Behind the scenes of minimal APIs. Part 1 - A first look behind the scenes of minimal API endpoints (this post) Part 2 - Extracting metadata from a minimal API...

View Article

Image may be NSFW.
Clik here to view.

Extracting metadata from a minimal API handler: Behind the scenes of minimal...

This is the second post in the series: Behind the scenes of minimal APIs. Part 1 - A first look behind the scenes of minimal API endpoints Part 2 - Extracting metadata from a minimal API handler (this...

View Article


Image may be NSFW.
Clik here to view.

Exploring the model-binding logic of minimal APIs: Behind the scenes of...

This is the third post in the series: Behind the scenes of minimal APIs. Part 1 - A first look behind the scenes of minimal API endpoints Part 2 - Extracting metadata from a minimal API handler Part 3...

View Article

Image may be NSFW.
Clik here to view.

Generating argument expressions for minimal APIs: Behind the scenes of...

This is the fourth post in the series: Behind the scenes of minimal APIs. Part 1 - A first look behind the scenes of minimal API endpoints Part 2 - Extracting metadata from a minimal API handler Part...

View Article

Image may be NSFW.
Clik here to view.

Generating argument expressions for minimal APIs (continued): Behind the...

This is the fifth post in the series: Behind the scenes of minimal APIs. Part 1 - A first look behind the scenes of minimal API endpoints Part 2 - Extracting metadata from a minimal API handler Part 3...

View Article


Image may be NSFW.
Clik here to view.

Generating the response writing expression for RequestDelegate: Behind the...

This is the sixth post in the series: Behind the scenes of minimal APIs. Part 1 - A first look behind the scenes of minimal API endpoints Part 2 - Extracting metadata from a minimal API handler Part 3...

View Article


Image may be NSFW.
Clik here to view.

Thoughts on 'What is .NET, and why should you choose it?'

Microsoft have just posted the first of what will be a series of posts on the design tenets and goals of .NET. This first post acts as an introduction, but it's also very detailed, and moderately...

View Article

Image may be NSFW.
Clik here to view.

Building the final RequestDelegate: Behind the scenes of minimal APIs - Part 7

This is the seventh post in the series: Behind the scenes of minimal APIs. Part 1 - A first look behind the scenes of minimal API endpoints Part 2 - Extracting metadata from a minimal API handler Part...

View Article

Image may be NSFW.
Clik here to view.

Customising the RequestDelegate with filters: Behind the scenes of minimal...

This is the eighth post in the series: Behind the scenes of minimal APIs. Part 1 - A first look behind the scenes of minimal API endpoints Part 2 - Extracting metadata from a minimal API handler Part...

View Article

Image may be NSFW.
Clik here to view.

Understanding SameSite cookies

In my previous post, I described a problem with sending cross-origin requests, and the problem was down to SameSite cookies. In this post I look at SameSite cookies in more detail. I'll describe what...

View Article


Image may be NSFW.
Clik here to view.

Supporting legacy browsers and SameSite cookies without UserAgent sniffing in...

In my previous post, I described how SameSite cookies work and how they work as a security measure. I also mentioned the fact that the specification was updated in 2019, and that the behaviour of...

View Article

Image may be NSFW.
Clik here to view.

Validating nested DataAnnotation IOptions recursively with MiniValidation

In this short post I show how you can use the MiniValidation library from Damian Edwards to support recursive validation of IOptions object in .NET 6+. Validating IOptions in .NET 6 Last year I wrote...

View Article


Image may be NSFW.
Clik here to view.

Using the new configuration binder source generator: Exploring the .NET 8...

This is the first post in the series: Exploring the .NET 8 preview. Part 1 - Using the new configuration binder source generator (this post) This is the first post in a new series, in which I look at...

View Article

Image may be NSFW.
Clik here to view.

The minimal API AOT compilation template: Exploring the .NET 8 preview - Part 2

This is the second post in the series: Exploring the .NET 8 preview. Part 1 - Using the new configuration binder source generator Part 2 - The minimal API AOT compilation template (this post) One of...

View Article


Image may be NSFW.
Clik here to view.

Comparing WebApplication.CreateBuilder() to the new CreateSlimBuilder()...

This is the third post in the series: Exploring the .NET 8 preview. Part 1 - Using the new configuration binder source generator Part 2 - The minimal API AOT compilation template Part 3 - Comparing...

View Article

Image may be NSFW.
Clik here to view.

Exploring the new minimal API source generator: Exploring the .NET 8 preview...

This is the fourth post in the series: Exploring the .NET 8 preview. Part 1 - Using the new configuration binder source generator Part 2 - The minimal API AOT compilation template Part 3 - Comparing...

View Article

Image may be NSFW.
Clik here to view.

Replacing method calls with Interceptors: Exploring the .NET 8 preview - Part 5

This is the fifth post in the series: Exploring the .NET 8 preview. Part 1 - Using the new configuration binder source generator Part 2 - The minimal API AOT compilation template Part 3 - Comparing...

View Article
Browsing all 743 articles
Browse latest View live