Skip to content

Instantly share code, notes, and snippets.

@Odonno
Created June 8, 2020 13:18
Show Gist options
  • Save Odonno/dc7291cbbf6ac57a41e0c94a12a0976f to your computer and use it in GitHub Desktop.
Save Odonno/dc7291cbbf6ac57a41e0c94a12a0976f to your computer and use it in GitHub Desktop.
.NET Core Azure Templates - HealthChecks
services.AddHealthChecks()
.AddUrlGroup(new Uri("https://login.microsoftonline.com"), "azure ad")
.AddUrlGroup(new Uri("https://graph.microsoft.com"), "graph api")
.AddSignalRHub(() => CreateSignalrHubConnection(healthCheckConfig["SignalR:Values"]), "signalr hub - values");
services.AddHealthChecksUI();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment