Resetting Entity Framework migrations

It's very often that when working on projects that has years of life and we are using Entity Framework, the migrations growth a lot over time and suddenly we encounter problems when we try to add new ones. Furthermore, opening the migrations folder and see tons of migration files is not very nice, so we... Continue Reading →

Deferred execution with LINQ

The execution of queries on collection of objects in C# is an operation that we can do of course using LINQ, the popular component introduced 10 year ago in the .NET framework. With LINQ we can write queries on objects with a SQL-like sintax, it give us a lot of flexibility but, as all the... Continue Reading →

Reliable RabbitMQ consumer with C#

Message Brokers like RabbitMQ are the most common solution for decouple the communication between two different application and add an intermediary between them. With this solution there are many benefits, like asynchronous communication, indipendent protocols between the applications, definition of rules for routing messages and in case of RabbitMQ an efficient protocol like AMQP to... Continue Reading →

RabbitMQ consumer with C#

In the previous post I talked about a RabbitMQ publisher and how we can implement it with C#. The next step is implement a consumer and we'll see how we can do that efficiently; unlike the publisher, the consumer has more implication and as we'll see, we can consume messages from RabbitMQ in different ways. The... Continue Reading →

RabbitMQ publisher with C#

RabbitMQ is one of the most popular message broker used to decouple the communication between different application and components. It has a nice and clear documentation with simply tutorials to understand the capabilities of the middleware; it implements the AMQP protocol and it offer a client for different enviroments and languages, like C#, Java, Python,... Continue Reading →

Managing SSH connections with C# Part 2

As discussed in the previous post, disposing an SSH connection is very important to free the port and leave it usable to the next connection. Unfortunately, implementing the connector as disposable is not enought, because if the application crash or stop unexpectedly, the dispose method will no be called and the port will remain busy... Continue Reading →

Managing SSH connections with C#

A new business requirement discussed recently was to connect and retrieve some data from a database hosted in an external network. Deep in dive on the preconditions I discover that the only way to connect to the database was to establish an SSH connection, so I started to ask about the parameters to be used... Continue Reading →

Create a website or blog at

Up ↑