Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,32 @@

namespace TransactionProcessor.HealthChecksUI
{
using System.Net.Http;

public class Startup
{
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
services.AddHealthChecksUI().AddInMemoryStorage();
services.AddHealthChecksUI(settings =>
{
settings.UseApiEndpointHttpMessageHandler(ApiEndpointHttpHandler);
}).AddInMemoryStorage();
}

private HttpClientHandler ApiEndpointHttpHandler(IServiceProvider arg)
{
return new HttpClientHandler
{
ServerCertificateCustomValidationCallback = (message,
cert,
chain,
errors) =>
{
return true;
}
};
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
{
"Name": "Estate Management UI",
"Uri": "http://192.168.0.133:5004/health"
"Uri": "https://192.168.0.133:5004/health"
},
{
"Name": "Estate Reporting Service",
Expand All @@ -50,7 +50,7 @@
// "Uri": "http://192.168.0.133:5009/health"
//}
],
"EvaluationTimeInSeconds": 10,
"EvaluationTimeInSeconds": 300,
"MinimumSecondsBetweenFailureNotifications": 60
}
}