Skip to content

Commit 448f703

Browse files
adding healthcheckservice (#16)
* adding healthcheckservice * updating to grpc health service
1 parent 5d82483 commit 448f703

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public static void Main(string[] args) {
3030
app.UseRouting();
3131
app.UseEndpoints(endpoints => {
3232
endpoints.MapGrpcService<Microsoft.Azure.SpaceFx.Core.Services.MessageReceiver>();
33+
endpoints.MapGrpcHealthChecksService();
3334
endpoints.MapGet("/", async context => {
3435
await context.Response.WriteAsync("Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909");
3536
});

test/debugClient/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public static void Main(string[] args) {
3232
app.UseRouting();
3333
app.UseEndpoints(endpoints => {
3434
endpoints.MapGrpcService<Core.Services.MessageReceiver>();
35+
endpoints.MapGrpcHealthChecksService();
3536
endpoints.MapGet("/", async context => {
3637
await context.Response.WriteAsync("Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909");
3738
});

test/integrationTests/TestSharedContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public TestSharedContext() {
5252
_grpcHost.UseRouting();
5353
_grpcHost.UseEndpoints(endpoints => {
5454
endpoints.MapGrpcService<Core.Services.MessageReceiver>();
55+
endpoints.MapGrpcHealthChecksService();
5556
endpoints.MapGet("/", async context => {
5657
await context.Response.WriteAsync("Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909");
5758
});

0 commit comments

Comments
 (0)