DotNet

  • 11 August 2024

How to ensure the graceful IHostedService shutdown

This article is a translation discussing the reasons for the timeout of `System.OperationCanceledException: The operation was canceled.` when shutting down `IHostedService`, as well as how to avoid it, thereby achieving a graceful shutdown.

Read more 
  • 07 September 2022

A Brief Discussion on the .NET String HashCode

Analyzing the variability issue of the `GetHashCode` method in the .NET string class itself, and providing an algorithm similar to Java's immutable string HashCode retrieval.

Read more 
  • 01 May 2022