Skip to content

Commit

Permalink
add service defaults to Host
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet committed Oct 8, 2024
1 parent e400567 commit 67aa5e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dotnet/src/Microsoft.AutoGen.Agents.Runtime/Host.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Hosting;

namespace Microsoft.AutoGen.Agents.Runtime;

Expand All @@ -7,6 +8,7 @@ public static class Host
public static async Task<WebApplication> StartAsync(bool local = false)
{
var builder = WebApplication.CreateBuilder();
builder.AddServiceDefaults();
if (local)
{
builder.AddLocalAgentService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

<ItemGroup>
<ProjectReference Include="../Microsoft.AutoGen.Agents/Microsoft.AutoGen.Agents.csproj" />
<ProjectReference Include="..\Microsoft.AutoGen.ServiceDefaults\Microsoft.AutoGen.ServiceDefaults.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 67aa5e3

Please sign in to comment.