Skip to content

Commit

Permalink
AppMetrics/MicrosoftExtensions#2 fixing example on registering health…
Browse files Browse the repository at this point in the history
… checks from assembly
  • Loading branch information
alhardy committed Feb 12, 2018
1 parent c3bee0c commit f9bba55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/web-monitoring/aspnet-core/health.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public class Startup
var metrics = AppMetricsHealth.CreateDefaultBuilder()
.HealthChecks.RegisterFromAssembly(services)
... // configure options and add health checks
.Build();
.BuildAndAddTo(services);

services.AddMetrics(metrics);
services.AddHealthEndpoints();
Expand Down

0 comments on commit f9bba55

Please sign in to comment.