diff --git a/dotnet/samples/Hello/Hello.AppHost/Program.cs b/dotnet/samples/Hello/Hello.AppHost/Program.cs index f8964a22b03d..e550542a8b40 100644 --- a/dotnet/samples/Hello/Hello.AppHost/Program.cs +++ b/dotnet/samples/Hello/Hello.AppHost/Program.cs @@ -7,13 +7,14 @@ var backend = builder.AddProject("backend").WithExternalHttpEndpoints(); var client = builder.AddProject("HelloAgentsDotNET") .WithReference(backend) - .WithEnvironment("AGENT_HOST", $"{backend.GetEndpoint("https").Property(EndpointProperty.Url)}") + .WithEnvironment("AGENT_HOST", backend.GetEndpoint("https")) .WithEnvironment("STAY_ALIVE_ON_GOODBYE", "true") .WaitFor(backend); #pragma warning disable ASPIREHOSTINGPYTHON001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. +// xlang is over http for now - in prod use TLS between containers builder.AddPythonApp("HelloAgentsPython", "../HelloPythonAgent", "hello_python_agent.py", "../../../../python/.venv") .WithReference(backend) - .WithEnvironment("AGENT_HOST", $"{backend.GetEndpoint("http").Property(EndpointProperty.Url)}") + .WithEnvironment("AGENT_HOST", backend.GetEndpoint("http")) .WithEnvironment("STAY_ALIVE_ON_GOODBYE", "true") .WithEnvironment("GRPC_DNS_RESOLVER", "native") .WithOtlpExporter()