🔨 Add the Messager to the service grid

This commit is contained in:
2026-01-01 22:28:59 +08:00
parent ab37bbc7b0
commit 6212820d74
4 changed files with 124 additions and 93 deletions

View File

@@ -27,8 +27,8 @@ jobs:
run: | run: |
files="${{ steps.changed-files.outputs.files }}" files="${{ steps.changed-files.outputs.files }}"
matrix="{\"include\":[]}" matrix="{\"include\":[]}"
services=("Sphere" "Pass" "Ring" "Drive" "Develop" "Gateway" "Insight" "Zone") services=("Sphere" "Pass" "Ring" "Drive" "Develop" "Gateway" "Insight" "Zone", "Messager")
images=("sphere" "pass" "ring" "drive" "develop" "gateway" "insight" "zone") images=("sphere" "pass" "ring" "drive" "develop" "gateway" "insight" "zone", "messager")
changed_services=() changed_services=()
for file in $files; do for file in $files; do

View File

@@ -32,11 +32,25 @@ var zoneService = builder.AddProject<Projects.DysonNetwork_Zone>("zone")
.WithReference(sphereService) .WithReference(sphereService)
.WithReference(developService) .WithReference(developService)
.WithReference(insightService); .WithReference(insightService);
var messagerService = builder.AddProject<Projects.DysonNetwork_Messager>("messager")
.WithReference(passService)
.WithReference(ringService)
.WithReference(sphereService)
.WithReference(developService);
passService.WithReference(developService).WithReference(driveService); passService.WithReference(developService).WithReference(driveService);
List<IResourceBuilder<ProjectResource>> services = List<IResourceBuilder<ProjectResource>> services =
[ringService, passService, driveService, sphereService, developService, insightService, zoneService]; [
ringService,
passService,
driveService,
sphereService,
developService,
insightService,
zoneService,
messagerService
];
for (var idx = 0; idx < services.Count; idx++) for (var idx = 0; idx < services.Count; idx++)
{ {

View File

@@ -25,5 +25,6 @@
<ProjectReference Include="..\DysonNetwork.Gateway\DysonNetwork.Gateway.csproj"/> <ProjectReference Include="..\DysonNetwork.Gateway\DysonNetwork.Gateway.csproj"/>
<ProjectReference Include="..\DysonNetwork.Insight\DysonNetwork.Insight.csproj"/> <ProjectReference Include="..\DysonNetwork.Insight\DysonNetwork.Insight.csproj"/>
<ProjectReference Include="..\DysonNetwork.Zone\DysonNetwork.Zone.csproj"/> <ProjectReference Include="..\DysonNetwork.Zone\DysonNetwork.Zone.csproj"/>
<ProjectReference Include="..\DysonNetwork.Messager\DysonNetwork.Messager.csproj"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -2,8 +2,24 @@ namespace DysonNetwork.Gateway.Health;
public abstract class GatewayConstant public abstract class GatewayConstant
{ {
public static readonly string[] ServiceNames = ["ring", "pass", "drive", "sphere", "develop", "insight", "zone"]; public static readonly string[] ServiceNames =
[
"ring",
"pass",
"drive",
"sphere",
"develop",
"insight",
"zone",
"messager"
];
// Core services stands with w/o these services the functional of entire app will broke. // Core services stands with w/o these services the functional of entire app will broke.
public static readonly string[] CoreServiceNames = ["ring", "pass", "drive", "sphere"]; public static readonly string[] CoreServiceNames =
[
"ring",
"pass",
"drive",
"sphere"
];
} }