This ASP.NET Core 3.1 app represents a loan application processing pipeline. The following table outlines projects found in the solution.
Project | Description |
---|---|
ContosoLending.CurrencyExchange | gRPC project handling currency conversion |
ContosoLending.DomainModel | .NET Standard project containing shared models |
ContosoLending.LoanProcessing | Durable Functions project for handling loan processing |
ContosoLending.Ui | Server-side Blazor UI project |
The following software must be installed:
- .NET Core SDK version SDK 3.1.100 or later
- Visual Studio 2019 version 16.4 or later with the following workloads:
- ASP.NET and web development
- Azure development
-
Open the Azure Cloud Shell in your web browser.
-
Run the following command to configure your Azure CLI defaults for resource group and region:
az configure --defaults group=<resource_group_name> location=<region_name>
-
Run the following command to provision an Azure Storage account:
az storage account create --name <storage_resource_name>
-
Run the following command to provision an Azure SignalR Service instance:
az signalr create --name <signalr_resource_name> --sku Standard_S1 --service-mode Serverless
-
Create a new local.settings.json file in the root of the ContosoLending.LoanProcessing project with the following content:
{ "IsEncrypted": false, "Values": { "AzureSignalRConnectionString": "<signalr_connection_string>", "AzureWebJobsStorage": "<storage_connection_string>", "FUNCTIONS_WORKER_RUNTIME": "dotnet" }, "Host": { "CORS": "https://localhost:44364", "CORSCredentials": true, "LocalHttpPort": 7071 } }
-
From the Azure Cloud Shell, run the following command to get the Azure Storage account's connection string:
az storage account show-connection-string --name <storage_resource_name> --query connectionString
Copy the resulting value (without the double quotes) to your clipboard.
-
Replace "<storage_connection_string>" in local.settings.json with the value on your clipboard.
-
Run the following command to get the Azure SignalR Service's connection string:
az signalr key list --name <signalr_resource_name> --query primaryConnectionString
Copy the resulting value (without the double quotes) to your clipboard.
-
Replace "<signalr_connection_string>" in local.settings.json with the value on your clipboard.
-
Open the solution file (src\ContosoLending.sln).
-
In Solution Explorer, right-click the libman.json file in the ContosoLending.Ui project > Restore Client-Side Libraries.
-
In Solution Explorer, right-click the solution name > Properties.
-
Select the Multiple startup projects radio button, and configure the solution as follows:
-
Select the OK button.
-
Select the Start button next to the <Multiple Startup Projects> launch configuration drop-down list.