Skip to content

Commit

Permalink
adding healthcheckservice (#16)
Browse files Browse the repository at this point in the history
* adding healthcheckservice

* updating to grpc health service
  • Loading branch information
bigtallcampbell authored Jul 31, 2024
1 parent 5d82483 commit 448f703
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public static void Main(string[] args) {
app.UseRouting();
app.UseEndpoints(endpoints => {
endpoints.MapGrpcService<Microsoft.Azure.SpaceFx.Core.Services.MessageReceiver>();
endpoints.MapGrpcHealthChecksService();
endpoints.MapGet("/", async context => {
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");
});
Expand Down
1 change: 1 addition & 0 deletions test/debugClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static void Main(string[] args) {
app.UseRouting();
app.UseEndpoints(endpoints => {
endpoints.MapGrpcService<Core.Services.MessageReceiver>();
endpoints.MapGrpcHealthChecksService();
endpoints.MapGet("/", async context => {
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");
});
Expand Down
1 change: 1 addition & 0 deletions test/integrationTests/TestSharedContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public TestSharedContext() {
_grpcHost.UseRouting();
_grpcHost.UseEndpoints(endpoints => {
endpoints.MapGrpcService<Core.Services.MessageReceiver>();
endpoints.MapGrpcHealthChecksService();
endpoints.MapGet("/", async context => {
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");
});
Expand Down

0 comments on commit 448f703

Please sign in to comment.