Build and Deploy an ASP .Net Core Web Application as Docker Container using Microsoft Azure – Part 1
This article is the first in the series where we are going to build a simple ASP .Net Core web application, containerize it with Docker and run it on local host. And we will push everything to GitHub for later use.
In the posts to follow, we will setup Microsoft Azure DevOps Build pipeline to automate the process of building and pushing the Docker image to Docker Hub. Next, we will use Azure DevOps Release pipeline to deploy our application on Azure Web App Service as a container.
Hosting your first Private Docker Registry
A registry is a stateless, highly scalable server side application that stores and lets you distribute Docker images. At a high level, a registry is a collection of different repositories which contain our images. These images have different tags.
Understanding Relationship between Objects
The relationship between objects defines how these objects will interact or collaborate to perform an operation in an application. In any application, objects of user interface classes interact with the business layer objects in order to perform an operation. And in the background, the business layer objects may interact with objects of some repository which in turn talks to some data source object or service object.
Understanding .Net Assemblies
Code reusability has always been one of the major concerns for software developers. You do not ever want to write a similar code for two business problems. You would rather like to write the solution once and reuse it whenever and wherever required.
When to use 'var' as a Type?
It has been quite a long time since var
was introduced, yet it stands debatable among .Net developers.
Everyone has a different understanding as and when to use var
as a type.
A couple of days ago I was also a part of one such discussion, and so I decided to share my understanding.