Our first task is to create our console application, as we have done with every microservice. We will do so as shown in the following figure:
Once the project is created, we need to install our NuGet packages for use. In this case, we are going to install and use a great open source package that is perhaps one of the most useful and easiest caching mechanisms I've used, CacheManager. This product will help us to store information when and where we need it, and has numerous types of runtime processing:
Installing Topshelf.Leader: