Skip to content

Commit

Permalink
add service defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet committed Oct 8, 2024
1 parent cf366f2 commit a001664
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 38 deletions.
38 changes: 0 additions & 38 deletions dotnet/AutoGen.sln
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevTeam.Backend", "samples\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevTeam.Shared", "samples\dev-team\DevTeam.Shared\DevTeam.Shared.csproj", "{D9F65DFD-368B-47DB-8BB5-0C74DED7F439}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HelloAgents", "HelloAgents", "{F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{243E768F-EA7D-4AF1-B625-0398440BB1AB}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
spelling.dic = spelling.dic
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloAgents.Agents", "samples\HelloAgents\HelloAgents.Agents\HelloAgents.Agents.csproj", "{ECCE44EE-3934-448E-A9A5-3403117EF0B5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloAgents.ApiService", "samples\HelloAgents\HelloAgents.ApiService\HelloAgents.ApiService.csproj", "{74ADFF5D-80AF-4A6E-9794-746BDE1A41D1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloAgents.AppHost", "samples\HelloAgents\HelloAgents.AppHost\HelloAgents.AppHost.csproj", "{031FED7F-97ED-4AA1-B408-88BD3B70A463}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloAgents.ServiceDefaults", "samples\HelloAgents\HelloAgents.ServiceDefaults\HelloAgents.ServiceDefaults.csproj", "{6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloAgents.Web", "samples\HelloAgents\HelloAgents.Web\HelloAgents.Web.csproj", "{8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hello", "samples\Hello\Hello.csproj", "{6C9135E6-9D15-4D86-B3F4-9666DB87060A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Autogen.ServiceDefaults", "src\Microsoft.Autogen.ServiceDefaults\Microsoft.Autogen.ServiceDefaults.csproj", "{F70C6FD7-9615-4EDD-8D55-5460FCC5A46D}"
Expand Down Expand Up @@ -312,26 +300,6 @@ Global
{D9F65DFD-368B-47DB-8BB5-0C74DED7F439}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D9F65DFD-368B-47DB-8BB5-0C74DED7F439}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D9F65DFD-368B-47DB-8BB5-0C74DED7F439}.Release|Any CPU.Build.0 = Release|Any CPU
{ECCE44EE-3934-448E-A9A5-3403117EF0B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ECCE44EE-3934-448E-A9A5-3403117EF0B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ECCE44EE-3934-448E-A9A5-3403117EF0B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ECCE44EE-3934-448E-A9A5-3403117EF0B5}.Release|Any CPU.Build.0 = Release|Any CPU
{74ADFF5D-80AF-4A6E-9794-746BDE1A41D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{74ADFF5D-80AF-4A6E-9794-746BDE1A41D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{74ADFF5D-80AF-4A6E-9794-746BDE1A41D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{74ADFF5D-80AF-4A6E-9794-746BDE1A41D1}.Release|Any CPU.Build.0 = Release|Any CPU
{031FED7F-97ED-4AA1-B408-88BD3B70A463}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{031FED7F-97ED-4AA1-B408-88BD3B70A463}.Debug|Any CPU.Build.0 = Debug|Any CPU
{031FED7F-97ED-4AA1-B408-88BD3B70A463}.Release|Any CPU.ActiveCfg = Release|Any CPU
{031FED7F-97ED-4AA1-B408-88BD3B70A463}.Release|Any CPU.Build.0 = Release|Any CPU
{6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5}.Release|Any CPU.Build.0 = Release|Any CPU
{8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B}.Release|Any CPU.Build.0 = Release|Any CPU
{6C9135E6-9D15-4D86-B3F4-9666DB87060A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6C9135E6-9D15-4D86-B3F4-9666DB87060A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6C9135E6-9D15-4D86-B3F4-9666DB87060A}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -393,12 +361,6 @@ Global
{F2F13EAF-05C6-4E90-B2E4-3FA0290D7F6E} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
{D826D5E4-31F4-4AB5-AC86-F7B4AD79314B} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
{D9F65DFD-368B-47DB-8BB5-0C74DED7F439} = {616F30DF-1F41-4047-BAA4-64BA03BF5AEA}
{F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
{ECCE44EE-3934-448E-A9A5-3403117EF0B5} = {F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}
{74ADFF5D-80AF-4A6E-9794-746BDE1A41D1} = {F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}
{031FED7F-97ED-4AA1-B408-88BD3B70A463} = {F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}
{6B88F4B3-26AB-4034-B0AC-5BA6EEDEB8E5} = {F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}
{8B56BE22-5CF4-44BB-AFA5-732FEA2AFF0B} = {F7AC0FF1-8500-49C6-8CB3-97C6D52C8BEF}
{6C9135E6-9D15-4D86-B3F4-9666DB87060A} = {FBFEAD1F-29EB-4D99-A672-0CD8473E10B9}
{F70C6FD7-9615-4EDD-8D55-5460FCC5A46D} = {18BF8DD7-0585-48BF-8F97-AD333080CE06}
EndGlobalSection
Expand Down
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;

Check failure on line 2 in dotnet/src/Microsoft.AutoGen.Agents.Runtime/Host.cs

View workflow job for this annotation

GitHub Actions / build-test-packages / build

Using directive is unnecessary. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005)

Check failure on line 2 in dotnet/src/Microsoft.AutoGen.Agents.Runtime/Host.cs

View workflow job for this annotation

GitHub Actions / build-test-packages / build

Using directive is unnecessary. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005)

namespace Microsoft.AutoGen.Agents.Runtime;

Expand All @@ -15,6 +16,7 @@ public static async Task<WebApplication> StartAsync(bool local = false)
{
builder.AddAgentService();
}
builder.AddServiceDefaults();

Check failure on line 19 in dotnet/src/Microsoft.AutoGen.Agents.Runtime/Host.cs

View workflow job for this annotation

GitHub Actions / build-test-packages / build

'WebApplicationBuilder' does not contain a definition for 'AddServiceDefaults' and no accessible extension method 'AddServiceDefaults' accepting a first argument of type 'WebApplicationBuilder' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 19 in dotnet/src/Microsoft.AutoGen.Agents.Runtime/Host.cs

View workflow job for this annotation

GitHub Actions / build-test-packages / build

'WebApplicationBuilder' does not contain a definition for 'AddServiceDefaults' and no accessible extension method 'AddServiceDefaults' accepting a first argument of type 'WebApplicationBuilder' could be found (are you missing a using directive or an assembly reference?)
var app = builder.Build();
app.MapAgentService();
await app.StartAsync().ConfigureAwait(false);
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 a001664

Please sign in to comment.