-
Notifications
You must be signed in to change notification settings - Fork 569
21. Tour on the WCF service and WinForms apps
The diagram below explains the simple scenario of the original legacy applications.
Let's have a quick experiment with the legacy version of the application to get a lay of the land. After you've pulled the repo, you'll notice that there are two projects: a WinForms project and a WCF service. Let's look at each of those.
The WinForms app is a two-pane application. On the first pane, you can see all of the items in the catalog and their prices. We can filter on their item type and brand. In the second pane, we can select dates on a calendar, an item in our catalog, and see what the stock availability will be like for that date.
The WCF Service exposes a contract and handles interacting with the underlying data layer. This underlying data layer consists of catalog items, their associated brand and type, and also the status of whether or not the company is running any discounts.
The important thing to note about the WCF service is that it can be configured to interface with a SQL database or it can use a mock database. You must toggle this by opening up "Web.config" in the project explorer. If you have a database stood up (in a VM or locally on your machine), you need to add a connectionString. Otherwise, you need to uncomment the line that sets using mock data to true.
After you've chosen whether you want to connect to a database or use mock data, click deploy. You'll be greeted with the application (shown below). Feel free to click around and get a feel for how the app works.
Continue on to learn about adding docker support to the application: Docker Support
- Home
- Release notes
- e-books
-
MVC & Web Forms Samples
- Tour of the "legacy" ASP.NET web apps to modernize
- How to containerize the .NET Framework web apps with Windows Containers and Docker
- Publishing your Windows Container images into a Docker Registry
- Deploying the Apps to Azure Web Apps for Containers
- Deploying the Apps to ACI (Azure Container Instances)
- Deploying your Windows Containers based app into Azure VMs (Including CI CD)
- Deploying into local Kubernetes in Windows 10 and Docker for Windows development environment
- How to deploy your Windows Containers based apps into Kubernetes in Azure Container Service (Including CI CD)
- How to add authentication authorization with Azure Active Directory
- How to migrate the SQL database to Azure with the Azure Database Migration Service
- Using Application Insights in eShopOnContainers
- N-Tier sample: WinForms app and WFC service
- ASP.NET to Azure App Service Migration Workshop