I would like to know how to programmatically discover and enumerate properties of the Application Pool being used to run my C# web site in order that I can test properties of the App Pool against a set of expectations and report the results. Environment is .NET 4 or later and IIS 7 or later.
I was wondering whether there are facilities built-in to the framework for this, or whether I would be dependent on an assembly present only on servers where IIS is installed.