diff --git a/examples/Hosting/Aspire/ServiceInvocationDemo/.aspire/settings.json b/examples/Hosting/Aspire/ServiceInvocationDemo/.aspire/settings.json new file mode 100644 index 000000000..cceb4c13a --- /dev/null +++ b/examples/Hosting/Aspire/ServiceInvocationDemo/.aspire/settings.json @@ -0,0 +1,3 @@ +{ + "appHostPath": "../ServiceInvocationDemo.AppHost/ServiceInvocationDemo.AppHost.csproj" +} \ No newline at end of file diff --git a/examples/Hosting/Aspire/ServiceInvocationDemo/README.md b/examples/Hosting/Aspire/ServiceInvocationDemo/README.md index 614c9afea..41c626948 100644 --- a/examples/Hosting/Aspire/ServiceInvocationDemo/README.md +++ b/examples/Hosting/Aspire/ServiceInvocationDemo/README.md @@ -1,12 +1,12 @@ # Aspire with Dapr Service Invocation Demo -This directory contains demonstration projects showcasing how to use .NET Aspire with Dapr to perform service invocation between frontend and backend applications using different approaches. +This directory contains demonstration projects showcasing how to use Aspire with Dapr to perform service invocation between frontend and backend applications using different approaches. ## Overview The ServiceInvocationDemo demonstrates various patterns for service-to-service communication in a distributed application architecture using: -- **.NET Aspire** - For application orchestration, service discovery, and observability +- **Aspire** - For application orchestration, service discovery, and observability - **Dapr** - For distributed application runtime capabilities including service invocation - **ASP.NET Core** - For both frontend and backend services @@ -40,13 +40,13 @@ The demo includes: 3. The console will display the Aspire dashboard URL. Open the provided link in your browser. -4. In the Aspire dashboard, click on the `http://localhost:5054/` link to access the demo application. +4. In the Aspire dashboard, click on the "FrontendApp.csproj" link `http://localhost:5054/` to access the demo application. 5. The main page will present various service invocation demonstration scenarios that you can explore. ## Key Features Demonstrated -- Integration between .NET Aspire orchestration and Dapr runtime +- Integration between Aspire orchestration and Dapr runtime - Service-to-service communication patterns - Development-time productivity with Aspire dashboard - Production-ready distributed application patterns diff --git a/examples/Hosting/Aspire/ServiceInvocationDemo/ServiceInvocationDemo.AppHost/Properties/launchSettings.json b/examples/Hosting/Aspire/ServiceInvocationDemo/ServiceInvocationDemo.AppHost/Properties/launchSettings.json index 4b6624862..8e3b563e7 100644 --- a/examples/Hosting/Aspire/ServiceInvocationDemo/ServiceInvocationDemo.AppHost/Properties/launchSettings.json +++ b/examples/Hosting/Aspire/ServiceInvocationDemo/ServiceInvocationDemo.AppHost/Properties/launchSettings.json @@ -9,6 +9,7 @@ "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development", "DOTNET_ENVIRONMENT": "Development", + "ASPIRE_ALLOW_UNSECURED_TRANSPORT": "true", "ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19274", "ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20286" } diff --git a/examples/Hosting/Aspire/ServiceInvocationDemo/ServiceInvocationDemo.AppHost/ServiceInvocationDemo.AppHost.csproj b/examples/Hosting/Aspire/ServiceInvocationDemo/ServiceInvocationDemo.AppHost/ServiceInvocationDemo.AppHost.csproj index 07e655631..f8ee40548 100644 --- a/examples/Hosting/Aspire/ServiceInvocationDemo/ServiceInvocationDemo.AppHost/ServiceInvocationDemo.AppHost.csproj +++ b/examples/Hosting/Aspire/ServiceInvocationDemo/ServiceInvocationDemo.AppHost/ServiceInvocationDemo.AppHost.csproj @@ -1,6 +1,6 @@ - + - + Exe @@ -13,8 +13,8 @@ - - + +