DLDilan Liveraindilanlivera.dev·Jan 15, 2022 · 4 min readAdd health checks in ASP.Net CoreHealth checks help us find the status of a service or other services on which our service is dependent. For example, Health checks are helpful if you have a load balancer in front of your services to distribute the load across multiple service nodes....00
DLDilan Liveraindilanlivera.dev·Nov 26, 2021 · 2 min readHTTP logging in ASP.Net CoreI have played around with .Net 6 for the past few days and remembered this tweet I saw a while back from David Fowler regarding new HTTP logging middleware in ASP.Net Core. Before .Net 6, I created an HTTP request and response logging middleware temp...00
DLDilan Liveraindilanlivera.dev·Nov 18, 2021 · 4 min readGlobal and implicit using directivesWhen working with C#, we used using keywords in two different places. One is at the beginning of C# files. This is called using directive. The using directive enables us to use the types defined in a namespace without referring to the type by fully q...00
DLDilan Liveraindilanlivera.dev·Nov 11, 2021 · 5 min readHow to setup HTTPS using CloudflareThis week I finished Troy Hunts What Every Developer Must Know About HTTPS course on Pluralsight. It is a fantastic course that I highly recommend anyone to look at if you want to learn more about HTTPS. I try to use HTTPS with all my HTTP requests. ...00
DLDilan Liveraindilanlivera.dev·Nov 5, 2021 · 2 min readxUnit - Cleaning side effectsI have been working with the file system last few days. As a part of this work, I create directories and files in the file system using code. When it came to unit testing my code, I used the System.IO.Abstractions.TestingHelpers library to mock the f...00