Blog Logo
TAGS

Supporting integration tests with WebApplicationFactory in .NET 6

In this post, Andrew Lock dives into exploring .NET 6 and discusses how to support integration tests with WebApplicationFactory. WebApplicationFactory and HostFactoryResolver class are two powerful to...

Read more...

Bending DateTime in .NET to Test Your Code Better

Learn how to solve the problem of validating actual time in your code when using DateTime.Now or DateTime.UtcNow. Author Stephen Walsh shares his solution using SimpleDateTimeProvider NuGet Package wh...

Read more...

Scrutor - Assembly Scanning and Decoration Extensions for Microsoft.Extensions.DependencyInjection

# Scrutor [![Build status](https://ci.appveyor.com/api/projects/status/j00uyvqnm54rdlkb?svg=true)](https://ci.appveyor.com/project/khellang/scrutor) [![NuGet Package](https://img.shields.io/nuget/v/Sc...

Read more...

Monacs.Sample - Sample project for Monacs library

This is a sample project showcasing the Monacs library. Monacs is a library that provides a monadic approach to handling errors and side effects in your code. With Monacs, you can easily and safely co...

Read more...

Avoiding Downtime in Rolling Deployments by Blocking SIGTERM

This post discusses the problem of seeing 502 error responses from your applications when theyre being upgraded using a rolling-upgrade deployment in Kubernetes. After upgrading a chart, and confirmin...

Read more...

Dont Do That, Do This: The .NET 6 Edition

This post is my annual contribution to the 2021 C# Advent Calendar. .NET 6 has officially arrived and there are a lot of good stuff, including C# 10, performance improvements, Hot Reload, and Minimal ...

Read more...

Implementing the microservice application layer using the Web API

Learn how to Implement the microservice application layer using the Web API in this article. The application layer can be implemented as part of the artifact (assembly) you are building, such as withi...

Read more...

How to Build an Event-Driven ASP.NET Core Microservice Architecture

Learn how to use RabbitMQ, C#, REST-API, and Entity Framework to build an event-driven microservice architecture that supports asynchronous decoupled communication and eventual consistency with integr...

Read more...

C# Channels - Async Data Pipelines

In this article, learn how to efficiently process data in a non-blocking way using the pipeline pattern. Compose and test pipelines using .NETs channels, and see how to cancel and handle errors. Imple...

Read more...

Pipelines for C#

Pipelines is a library for implementing programs as Pipeline objects in C#. This library is inspired by Arlo Belshees talk, Refactoring to Async. Pipelines are a mechanism of separating a function tha...

Read more...

Object Calisthenics: Principles for Better Object-Oriented Code

Ready to up your coding game? Object Calisthenics will help you create code that is cleaner, more flexible, more agile, and more reusable. Object Calisthenics were first introduced by Jeff Bay in The ...

Read more...

The Outbox Pattern in Event-Driven ASP.NET Core Microservice Architectures

Learn how to build a resilient architecture with RabbitMQ, C#, Entity Framework, and the Transactional Outbox Pattern. In this guide, you will create two microservices that use events to publish chang...

Read more...

Accenture | Let There Be Change

Accenture is a global professional services company with expertise across a wide range of industries and services, including artificial intelligence, customer experience, digital transformation, cyber...

Read more...

Domain-Driven Refactoring: Intro

A common trap in Domain-Driven Design is blindly applying patterns and complex layering with the hope of achieving clean code. However, no amount of prescriptive guidance results in automatically clea...

Read more...

Message Routing in Dotnet 6

In this post, Joshua Steward builds on his previous work on background message processing in Dotnet 6 and introduces a new concept called MessageRouter. The post discusses how to route a single Intern...

Read more...

Proto.Actor - Ultra-fast, distributed, cross-platform actors.

Proto.Actor is a minimalistic API for ultra-fast, distributed, cross-platform actors. It is built on existing technologies and uses Protobuf for serialization. The API is small and easy to use, avoidi...

Read more...

Event-Driven Architecture with Apache Kafka for .NET Developers Part 1 - Event Producer

Learn how to implement an event-driven architecture using Apache Kafka as the event router. This article covers setting up the development environment and publishing messages to Kafka. Kafka is a hori...

Read more...

Event-Driven Architecture with Apache Kafka for .NET Developers Part 2 - Event Consumer

In this article, the author discusses the implementation of an event consumer using Kafka for .NET developers with a specific focus on the Manager service. The article also covers the necessary NuGet ...

Read more...

Graceterm - Tool for Zero Downtime Updates in Kubernetes

Graceterm is a middleware tool for AspNet Core that ensures graceful shutdown of the application. It was designed to achieve zero downtime while performing Kubernetes rolling updates. After receiving ...

Read more...

Using Service Invocation from Dapr .NET SDK

In this post, Laurent Kempé explains how to invoke services using the Dapr .NET SDK. He compares two methods of invoking services - one using a simple .NET HttpClient and another using the Dapr .NET S...

Read more...