Once we have populated our main program file, it will look as follows. Notice that it mirrors that of all the other microservices we have created. Why continue to show the same code? Because this really is the heart of how each microservice operates, and it's so very important for you to gain an understanding of this. Even if most of the code is identical, as you become more familiar with it, you will be in a much better position to make the changes needed for your environment. And pay attention, because pretty soon we're going to start changing it up a bit to show you even more things you can do and accomplish:
static void Main(string[] args)
{
var builder = new ContainerBuilder();
// Service itself
builder.RegisterType<Logger>().SingleInstance();
builder.RegisterType<DeploymentMonitorMicroservice>()
.AsImplementedInterfaces()
.AsSelf()
?.InstancePerLifetimeScope...