Automatically format your dotnet code using dotnet format - GitHub Actions
Background When working in a team, it's important to follow the style guidelines that apply to the project. It makes it easier to read the code if all code "look and feel" the same. It should not be...
View ArticleStream files from Postgres - dotnet core
This is a follow up to my previous post Stream files to Postgres. Scenario Due to reasons I cannot reveal, I have a situation where I have some images stored in a Postgres database, in a bytea column....
View ArticleUsing http/2 with ASP.NET Core - Traefik/Kubernetes/container example
Intro When dealing with TLS and containers, a common pattern is to terminate the TLS connection in a load balancer and then speak http/1 between the loadbalancer and the container. It has a number of...
View ArticleStream files from Postgres - dotnet core
This is a follow up to my previous post Stream files to Postgres. Scenario Due to reasons I cannot reveal, I have a situation where I have some images stored in a Postgres database, in a bytea column....
View ArticleDon't reinvent the wheel - configuration
More often than not, I find code in various dotnet core solutions that contains code like this: Program.cs ....... if(EnvironmentHelper.IsLocal) { services.AddSingleton<ICustomerClient,...
View ArticleTesting your Polly policies
Photo by Reuben Introduction We have the following Polly policy: public static IAsyncPolicy<HttpResponseMessage> MyRetryPolicy( int attempts = 3, Func<int, TimeSpan>? sleepDurationProvider...
View ArticleDon't reinvent the wheel - configuration
More often than not, I find code in various dotnet core solutions that contains code like this: Program.cs ....... if(EnvironmentHelper.IsLocal) { services.AddSingleton<ICustomerClient,...
View Article