Tag: c#
Primary Constructors in C# 12
With c# 12 (.Net 8), we finally get primary constructors for classes and structs. I’ve wanted primary constructors since I started…
Read MoreProper Ordering of Middleware Components in ASP.NET Core
Middleware components in an ASP.NET Core application play a crucial role in handling HTTP requests and responses. Their positioning in your…
Read MoreBuilding Resilient Applications with .NET Core Health Checks Using AspNetCore.Diagnostics.HealthChecks
Reliable and efficient monitoring is crucial for managing the health of applications. Especially in a microservices architecture, you want to know…
Read MoreMy Notes: Levenshtein distance and/or Metaphone
aka things that sound alike Levenshtein distance and Metaphone 3 are two different algorithms primarily used in the context of text…
Read MoreDomain-Driven Design (DDD) using C# from ChatGPT
I asked ChatGPT4 what a DDD is in c#. It came back with a decent answer. In Domain-Driven Design (DDD)…
Read More.NET 6 IntersectBy and ExceptBy
I often try to see the delta between two lists to see what needs to be added or deleted. Microsoft finally…
Read MoreInstall .Net windows services without using installutil.exe
When writing a windows service using c# (or vb.net), you can install the service locally using?installutil.exe. ?You can simply just install…
Read MoreDisable WCF Certificate Check for Self-Assigned Certificates
To “turn off” the trusted certificate check for self-assigned certificates, just add this to the web.config
Read MoreDisable button on click ASP.Net 2.0 or higher (prevent double click)
There is a need, at times, to prevent the user from clicking a button?multiple?times. ?Since ASP.Net already wraps something into the…
Read More