Skip to content

Commit b01c261

Browse files
Aspire: conditionally launch either combined hubservice or individual services
1 parent 75a7d3c commit b01c261

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/Certify.Aspire/Certify.Aspire.AppHost/Certify.Aspire.AppHost.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<ItemGroup>
1717
<ProjectReference Include="..\..\Certify.Server\Certify.Server.Hub.Api\Certify.Server.Hub.Api.csproj" />
1818
<ProjectReference Include="..\..\Certify.Server\Certify.Server.Core\Certify.Server.Core\Certify.Server.Core.csproj" />
19+
<ProjectReference Include="..\..\Certify.Server\Certify.Server.HubService\Certify.Server.HubService.csproj" />
1920
</ItemGroup>
2021

2122
</Project>
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
var builder = DistributedApplication.CreateBuilder(args);
22

3-
builder.AddProject<Projects.Certify_Server_Hub_Api>("certifyserverhubapi");
3+
var useIndependentServices = false;
44

5-
builder.AddProject<Projects.Certify_Server_Core>("certifyservercore");
5+
if (useIndependentServices)
6+
{
7+
builder.AddProject<Projects.Certify_Server_Hub_Api>("certifyserverhubapi");
8+
9+
builder.AddProject<Projects.Certify_Server_Core>("certifyservercore");
10+
}
11+
else
12+
{
13+
// use combined hubservice
14+
builder.AddProject<Projects.Certify_Server_HubService>("certify-server-hubservice");
15+
}
616

717
builder.Build().Run();

0 commit comments

Comments
 (0)