Minimal API validation with ASP.NET 7.0 Endpoint Filters
Explains how to implement centralized request validation using Endpoint Filters in ASP.NET 7.0 Minimal APIs to avoid code duplication.
Ben Foster shares practical guides on ASP.NET Core, Minimal APIs, and modern .NET development, helping developers build efficient web APIs.
132 articles from this blog
Explains how to implement centralized request validation using Endpoint Filters in ASP.NET 7.0 Minimal APIs to avoid code duplication.
Explores ASP.NET 6.0 Minimal APIs, discussing their benefits, addressing common concerns, and comparing them to traditional MVC.
Explains how to implement custom model binding for complex objects in ASP.NET 6.0 Minimal APIs using BindAsync and TryParse.
A guide to transitioning from traditional ASP.NET Core MVC to the new lightweight Minimal APIs introduced in ASP.NET Core 6.0.
Explains how to customize HTTP responses for failed authorization in ASP.NET Core 5.0 using the IAuthorizationMiddlewareResultHandler interface.
A guide to building high-quality .NET libraries, covering project structure, tooling, and best practices for open-source development.
A guide for engineering managers on making strategic hiring decisions to scale a tech team effectively, based on experience at a fintech company.
A technical guide on implementing pagination and querying for all items in a DynamoDB partition using .NET, comparing the Object Persistence and Document Model APIs.
A guide to optimizing .NET Core Docker image size using multi-stage builds and assembly trimming for a replication tool.
A guide to testing .NET Core's IOptionsMonitor, including a stub implementation and example unit tests for configuration change scenarios.
Explains how to run k6 load tests from the cloud, including using custom Docker images and AWS ECS/Fargate for private or complex scenarios.
A guide to binding and validating enum values from user input in ASP.NET Core APIs, addressing common pitfalls and providing utility code.
Best practices for using Serilog, a structured logging library for .NET, covering standard properties, logging levels, and performance timing.
How to retrieve the current API route name in ASP.NET Core 3.1 for metrics, covering changes from endpoint routing in 2.2.
Explains how to override hostname, port, and path when generating URLs in ASP.NET Core MVC, beyond the standard scheme.
A guide to customizing conventions and extending the NSpec BDD testing framework for .NET to fit specific testing patterns.
Explains NSpec conventions for BDD testing in .NET, covering context, setup, assertions, and cleanup.
How to decompress zlib data in .NET Core using the SharpZipLib library, as the built-in DeflateStream is incompatible.
Explains how to inject and use UrlHelper in ASP.NET Core MVC to generate dynamic hypermedia links in API responses.
A technical guide on implementing IP address whitelisting for AWS API Gateway using IAM policies, covering authentication and limitations.