Tag Archives: C#

C# – How to return a value from a Thread

By | 13/10/2021

In this post, we will see how to return a value from a Thread. First of all, we create a new Console application project where we define three methods called Method1, Method2 and Method3: Then, we modify the Main method in order to run the first two methods in different Threads: If we run the… 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# – Joining Threads

By | 22/09/2021

In this post, we will see how to use the Join method with the Threads in order to allows one thread to wait until another completes the execution. We start creating a Console application where we add three methods in Program.cs called Method1, Method2 and Method3: Then, we modify Main method in order to run… Read More »

Category: C# Tags:

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:

C# – Introduction to Multithreading

By | 08/09/2021

In this post, we will see how to use multithreading in C# in order to have best performances in our applications.Multithread is a very big argument and in this first post, we will just see how to start working with it. But first of all, what does Multithreading mean?From Microsoft web site:“A process is an… Read More »

Category: C# Tags:

C# – Unit test with Moq

By | 04/08/2021

In this post, we will see how to use Moq in order to create Unit Test for a Class Library project used to manage CRUD operations.But, what is Moq?Moq is a library used to create mock objects that simulate or mimic a real object.Here, we can find the Moq project. First of all, we define… Read More »

Azure – Cosmos DB

By | 07/07/2021

In this post, we will see how to create a database in Cosmos DB using Azure Portal and how to manage CRUD operations with a console application.But, what is Cosmos DB?From Microsoft web site:“Azure Cosmos DB is a fully managed NoSQL database for modern app development. Single-digit millisecond response times, and automatic and instant scalability,… Read More »