Table of Contents

Class Platform

Namespace
Steeltoe.Common
Assembly
Steeltoe.Common.dll
public static class Platform
Inheritance
Platform
Inherited Members

Fields

KUBERNETES_HOST

public const string KUBERNETES_HOST = "KUBERNETES_SERVICE_HOST"

Field Value

string

NET_CORE

public const string NET_CORE = ".NET Core"

Field Value

string

NET_FRAMEWORK

public const string NET_FRAMEWORK = ".NET Framework"

Field Value

string

VCAP_APPLICATION

public const string VCAP_APPLICATION = "VCAP_APPLICATION"

Field Value

string

Properties

IsCloudFoundry

Gets a value indicating whether or not the platform is Cloud Foundry by checking if VCAP_APPLICATION has been set

public static bool IsCloudFoundry { get; }

Property Value

bool

IsCloudHosted

Gets a value indicating whether an app is running on a cloud provider. Currently supports Cloud Foundry and Kubernetes

public static bool IsCloudHosted { get; }

Property Value

bool

IsContainerized

Gets a value indicating whether or not the application appears to be running in a container

public static bool IsContainerized { get; }

Property Value

bool

IsFullFramework

public static bool IsFullFramework { get; }

Property Value

bool

IsKubernetes

Gets a value indicating whether or not the platform is Kubernetes by checking if KUBERNETES_HOST has been set

public static bool IsKubernetes { get; }

Property Value

bool

IsLinux

public static bool IsLinux { get; }

Property Value

bool

IsNetCore

public static bool IsNetCore { get; }

Property Value

bool

IsOSX

public static bool IsOSX { get; }

Property Value

bool

IsWindows

public static bool IsWindows { get; }

Property Value

bool