Recently I’ve developed a simple processing application that generates some data in database. For business logic it was important to understand what entity was created the last on some steps. Since there was no concern about scaling or running several instances simultaneously, it was decided to use the primary key itself, the auto-incremental integer value. I didn’t want to rely somehow on date-time, or invent something sophisticated.
The post describes how to easily run Ansible on Windows without docker, VirtualBox or Hyper-V. The approach utilizes Linux through Windows Subsystem for Linux (WSL) available in Windows 10.
Sometimes, the incoming data in JSON has some custom form that is not supported by the built-in Json.NET converters. In this article, as an educational example, we will implement a custom converter from UNIX time format in milliseconds to the native .NET class DateTime.
Once, I was needed to have a simple endpoint in which I can send any request in test purposes. Just a simple web service that eats a request, no matter what HTTP method and route are used. Fortunately, Microsoft did a great job making ASP.NET Core as flexible as possible, so the solution turned up quite short and simple.
Here is my updated list of the essential Visual Studio 2017 addons for a comfort productive work. Here is the link to the previous list.
I’d like to introduce a library for accessing app settings in the App.config and Web.config. Unlike standard ConfigurationManager, ConfigEx additionally allows reading configs of other assemblies used in the project. Moreover, it is strongly typed, has a mechanism of settings overriding and allows applying automatic conversion of values.