Latest Articles

ASP.NET CORE
API-Versionierung mit ASP.NET Core 3.0: Einbindung der Versionierung, Controller & Actions - Teil 2 [Screencast]
Inhalte des Screencasts Einbinden von Versionierung: Anhand eines neuen Projekts wird gezeigt, wie die Versionierung installiert und eingebunden wird, sodass ein Client die Version mittels Query-Parametern auswählen kann. Versionierte Controller: Es wird demonstriert, wie ein…
Sebastian Gingter
ASP.NET CORE
API-Versionierung mit ASP.NET Core 3.0: Warum versionieren, Versionsauswahl, Möglichkeiten - Teil 1 [Screencast]
Inhalte des Screencasts Warum API-Versionierung? Gründe, die für die Versionierung einer API sprechen, wann man API-Versionierung (nicht) in Betracht ziehen sollte und welche Kriterien dafür sprechen, eine neue Version einzuführen. Versionsauswahl: Es werden vier verschiedene…
Sebastian Gingter
IdentityServer
How to correctly delete your SameSite Cookies in Chrome (80+)
In my last article I explained how the changes in Chrome 80 (February 2020) can break your existing web sites or web applications, because SameSite cookies will be treated differently. In that post I focused on how to correctly set your cookies and how to mitigate…
Sebastian Gingter
IdentityServer
How to prepare your IdentityServer for Chrome's SameSite cookie changes - and how to deal with Safari, nevertheless
First, the good news: In February 2020 Google is going to release Chrome 80. This release will include Google's implementation of 'Incrementally better Cookies', which will make the web a more secure place and helps to ensure better privacy for users. The bad news is that this…
Sebastian Gingter
ASP.NET
ASP.NET Core 3.0 - Custom JsonConverter for the new System.Text.Json
With the introduction of ASP.NET Core 3.0 the default JSON serializer has been changed from Newtonsoft.Json to System.Text.Json. For projects and libraries switching to the new JSON serializer this change means more performance and the opportunity to rewrite our . Serialization…
Pawel Gerr
ASP.NET
ASP.NET Core - Update to Autofac 4.6.1 recommended - more than a bugfix release
If you are using Autofac in your ASP.NET Core application then I recommend to update Autofac to version 4.6.1. This bugfix release brought a change how child scope handle additional registrations so that some errors like just disappear. With additional registrations I mean the…
Pawel Gerr
ASP.NET
ASP.NET Core in production - Graceful shutdown and reacting to aborted requests
In the previous post "ASP.NET Core in production: Take back control of your web app" I mentioned that getting hold if the dependency injection (DI) is just one step of many to improve the architecture of your web applications. Today well will look into 2 other aspects that are…
Pawel Gerr
ASP.NET
ASP.NET Core in production - Take back control of your web app
With ASP.NET Core the setup of a new MVC or a Web API project is essentially a 2-liner. The standard setup you can find in most tutorials is ideal for demos, workshops or simple web apps but is insufficient for complex applications. The standard setup looks as follows: The rest…
Pawel Gerr
ASP.NET
ASP.NET Core - Beware - Singleton may not be singleton
If you register a type as a singleton then you expect just 1 instance of this type in your whole application. What you may not know is that ASP.NET Core is creating 2 instances of during building of the that may lead to 2 instance of your "singleton". This is the case if you…
Pawel Gerr
ASP.NET Core
ASP.NET Core Web API Performance - Throughput for Upload and Download
After working with the new ASP.NET Core server and the for a while in a number of projects I run into some performance issues. Actually, it was a throughput issue. It took me some time to figure out whether it is the server or the client responsible for the problems. And the…
Pawel Gerr
ASP.NET
ASP.NET Core with IIS - Setup Issues
If you are planing to run an ASP.NET Core application with IIS then this blog post might be worth a glance. These are a few issues I run into ... 1. Targets in .xproj-file If the project started with RC1 or earlier version of .NET Core then check for correct targets. Open the…
Pawel Gerr
ASP.NET
(ASP).NET Core Dependecy Injection - Disposing
After several years of using the same Dependency Injection (DI) framework like Autofac you may have a good understanding how your components, implementing the interface IDisposable, are going to be disposed. With the nuget package Microsoft.Extensions.DependencyInjection the new…
Pawel Gerr