Skip to content

Instantly share code, notes, and snippets.

@OwnageIsMagic
OwnageIsMagic / check.fsx
Last active December 22, 2023 07:08
Check changeset tokens
#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
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