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# Part 2

Migrate csproj file from VS 2015 to VS 2017 and .NET SDK

With the release of Visual Studio 2017 and the introduction of .NET Core, Microsoft has implemented a new version of csproj files, simplier, lighter and easier to mantain and modify. The new version has nothing in common with the older and if we want to migrate the older Visual Studio 2015 projects to the newer … Continue reading Migrate csproj file from VS 2015 to VS 2017 and .NET SDK

Generic object factory for classes with non public constructor in C#

In this post I want to talk about a common need that we could have in an applications, that is an object factory. Of course, we could have different requirements about the implementation of it, but the most widespread is a generic factory like this: This is a very simple implementation, but with the new … Continue reading Generic object factory for classes with non public constructor in C#

Using adapter pattern to parse HTML with C# and AgilityPack

Recently I faced with a business requirement about extracting informations from some html pages and display them in a local application. The principal problem that I found was that the result were in html format and I needed to transform that in a c# object, in order to be able to manage the informations in … Continue reading Using adapter pattern to parse HTML with C# and AgilityPack

Continuous integration with Atlassian Bamboo

The continuous integration is a frequent theme in the application development, expecially in the projects with many developers involved that work on differents components of the application. Just because the developers works on different features, a process that integrate the new code frequently in project and verify that all the dependencies of that are working … Continue reading Continuous integration with Atlassian Bamboo