Archives for C# - Page 2
Consume OData feed with C# Client Application
Introduction OData represents Open Data Protocol is an OASIS standard initiated by Microsoft in the year 2007. This defines the best practices for the consumption of data and building with…
Understanding Semaphore in .NET Core
Semaphore class in is a thin wrapper around the Win32 Semaphore object. This is used to controls access to a resource or pool of resources concurrently. SemaphoreSlim class is lightweight…
Implementing Dependency Injection in .NET Core Console Applications
Before reading this article, readers should have a basic understanding of Dependency Injection as well as .NET Core. In general, when we create a new .NET core web applications, the…
How to change Foreground Color of Text in Console
As we know in .NET Core all types of applications will run on Console based and in some situations like to identify monitoring different category level debug information it would…
Working with gRPC in .NET Core
Overview This article will do a brief introduction to the gRPC framework, then will see how gRPC services can be created with Core and how we can invoke these services…
Implementing .NET Core Health Checks
Generally, when we are using any uptime monitoring systems or load balancers, these systems will keep monitoring the health of the application and based on its health condition it will…
Creating Trimmed Self Contained Single Executable using .NET Core 3.0
In .NET Core, we have a feature to get the runtime components and dependency components in the same folder where the application executable file resides. With this, the advantage is,…
C# 8.0: Static Local Functions
Local Functions are introduced in C# , you can read more about it here. In C# , these Local Functions are improvised so that it will work with more performance-driven…
C# 8.0: Enhanced Using Declaration
As we all aware using keyword is been used to ensure that the Dispose() method will be called on a type object implemented IDisposableinterface when it reaches declared block as shown…
C# 8.0: Nullable Reference Types
As we all ware of Nullable Types feature in C# also known as Nullable Value Types which was introduced since C# version. The advantage of this type is to avoid…