This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.Options; | |
namespace XXX.HealthCheck; | |
public static class HealthCheckListenerServiceCollectionExtensions | |
{ | |
public static IServiceCollection AddHealthCheckListener(this IServiceCollection services, IConfiguration config) | |
{ | |
// var useConforming = config.GetValue($"{nameof(StatusListenerOptions)}:{nameof(StatusListenerOptions.UseConformingHttpListener)}", | |
// // if not set explicitly, disable on Windows -- it requires ACL configuration for non localhost bind |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "FSharp.Compiler.Service.dll" | |
open System | |
open System.Collections.Generic | |
open System.Diagnostics | |
open System.Globalization | |
open System.IO | |
open System.Text.RegularExpressions | |
open FSharp.Compiler.Tokenization | |
open Microsoft.FSharp.Core |