#526 – October 06, 2024
Simplify the building, running, and management of your applications
10 Lessons I Learned from Using Aspire in Production
12 minutes by Oleksii Nikiforov
Oleksii has been using .NET Aspire for a while now and has learned a lot along the way. In this blog post, he will share some of the lessons he has learned from using .NET Aspire in production.
How Fern helped Pinecone automate its C# SDK, with both gRPC and REST support
sponsored by Fern
This article explores how Pinecone used Fern's SDK generator to create its C# SDK with both gRPC and REST support - the first of its kind! Learn more about the benefits of using Fern's generators to automate SDK creation and maintenance across multiple API languages.
An Efficient Dictionary for IPAddress Tracking
6 minutes by Steve Gordon
This article introduces enhancements to collections in .NET 9 and C# 13, focusing on low-allocation code paths. It demonstrates the use of a custom IAlternateEqualityComparer and the AlternateLookup feature on a Dictionary for efficiently tracking IP address information.
Avoiding Identity Obsession in .NET with Entity Framework Core
7 minutes by Peter Ritchie
This article discusses how to implement Domain-Driven Design (DDD) principles with Entity Framework Core, focusing on avoiding "Identity Obsession" in domain entities. It demonstrates how to use shadow properties, custom entity type configurations, and a repository pattern to separate domain concerns from persistence details, allowing for more flexible and maintainable code.
Everything You Want to Know About the Record Type
7 minutes by David McCarter
This article discusses the introduction of record types in .NET 5, highlighting their benefits and performance characteristics. Dave explains how record types simplify the creation of immutable classes, automatically generate important methods like GetHashCode() and ToString(), and support inheritance.
How to use IHttpClientFactory and WireMock.NET together using Moq
8 minutes by Davide Bellone
WireMock.NET is a popular library used to simulate network communication through HTTP. But there is no simple way to integrate the generated in-memory server with an instance of IHttpClientFactory injected via constructor. Right? Wrong!