<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Extensibility.Implementation.IPlatform

interface IPlatform
Encapsulates platform-specific functionality required by the API.

Returns the platform specific Debugger writer to the VS output console.

string GetMachineName()

Returns the machine name.

Returns contents of the ApplicationInsights.config file in the application directory.

bool TryGetEnvironmentVariable(string name, out string value)

Find an environment variable by name. Will evaluate if that variable is empty.