Custom Logging Implementation.NET out of box provides several logging providers, for example, Console, EventLog, etc.. If you want to develop your own logging provider…Jul 25, 2024Jul 25, 2024
Calling Asynchronous Code from Synchronous Code in C#Nowadays, lot of library code would use the Task asynchronous programming model (TAP). The methods are marked with async keyword and the…Jul 15, 2024Jul 15, 2024
Monitor Windows Forms App using HearbeatIf we want to monitor a Windows Forms application by using the heartbeat signal, we need to make sure that the heartbeat signal is sent…May 28, 2024May 28, 2024
Using MVVM Toolkit for Windows Forms AppThe traditional way to develop Windows Forms app is to put all the logic in the Forms code behind. This would create a tight couple between…May 9, 2024May 9, 2024
NewtonSoft.JSON Serializing/DeserializingIn this article, we will discuss the behavior of serialization/deserialization in NewtonSoft.JSON library.Apr 3, 20241Apr 3, 20241
Non-Blocking call in WinForm without async/awaitThe C# Task asynchronous programming model (TAP) provides an easy way for developer to write asynchronous code. However, it requires you…Feb 2, 2024Feb 2, 2024
C# Linked Cancellation Token SourceStarting from the .NET Framework 4, Microsoft provides a unified model for cancellation of asynchronous or long-running synchronous…Nov 16, 2023Nov 16, 2023
Make Windows Form Non-ClickableWe probably encountered this scenario many times: when user clicks a button on Windows Forms, we need to call backend service to process…May 23, 2023May 23, 2023