Tag Archives: C#

C# – “ValueOf” library

By | 15/06/2022

In this post, we will see the library ValueOf that we could use for validating our classes.But first of all, what is the purpose of ValueOf?From the GitHub page:“The Smell: Primitive Obsession is using primitive data types to represent domain ideas. For example, we use a String to represent a message, an Integer to represent… Read More »

Category: C# Tags:

C# – Redis Cache

By | 06/04/2022

In this post, we will see how to manage Redis Cache in a Web API .NET Core project.But first of all, what is Redis Cache?From Redis web site:“Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes,… Read More »

Category: C# Tags:

C# – Worker Services

By | 09/02/2022

In this post, we will see how to create a Worker Service in .net core to read messages in a RabbitMQ queue.But first of all, what is a Worker Service?From Microsoft web site:“Background service processing usually doesn’t involve a user interface (UI), but UIs can be built around them. In the early days with .NET… Read More »

Category: C# Tags:

C# – RabbitMQ

By | 19/01/2022

In this post, we will see how to send notification using RabbitMQ with C#.But first of all, what is RabbitMQ?“RabbitMQ is a message-broker that offers multiple messaging protocols and features that help components asynchronously pass data (in the form of messages) among one another.”In RabbitMQ the messages are not published directly to a queue but,… Read More »

Category: C# Tags:

Azure – How to use Azure Key Vault

By | 29/09/2021

In this post, we well see how to use Azure Key Vault in a console application, in order to store and retrieve a connection string.First of all, what is Azure Key Vault?From Microsoft web site:“Azure Key Vault is a cloud service that provides a secure store for secrets. You can securely store keys, passwords, certificates,… Read More »

C# – Yield

By | 15/09/2021

In this post, we will see how to use the Yield keyword in a C# application.But first of all, what is Yield?From Microsoft web site:“When you use the yield contextual keyword in a statement, you indicate that the method, operator, or get accessor in which it appears is an iterator. Using yield to define an… Read More »

Category: C# Tags: