diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Host.cs b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Host.cs index e3e8107b4d12..3fb9fa9911a5 100644 --- a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Host.cs +++ b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Host.cs @@ -1,4 +1,5 @@ using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.Hosting; namespace Microsoft.AutoGen.Agents.Runtime; @@ -7,6 +8,7 @@ public static class Host public static async Task StartAsync(bool local = false) { var builder = WebApplication.CreateBuilder(); + builder.AddServiceDefaults(); if (local) { builder.AddLocalAgentService(); diff --git a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Microsoft.AutoGen.Agents.Runtime.csproj b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Microsoft.AutoGen.Agents.Runtime.csproj index 5b7c0ca6002e..113269e884f1 100644 --- a/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Microsoft.AutoGen.Agents.Runtime.csproj +++ b/dotnet/src/Microsoft.AutoGen.Agents.Runtime/Microsoft.AutoGen.Agents.Runtime.csproj @@ -14,6 +14,7 @@ +