Class Platform
Inheritance
System.Object
Platform
Assembly: Steeltoe.Common.dll
public static class Platform : object
Properties
|
Edit this page
View Source
Gets a value indicating whether the platform is Cloud Foundry by checking if VCAP_APPLICATION has been set.
Declaration
public static bool IsCloudFoundry { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Gets a value indicating whether an app is running on a cloud provider. Currently supports Cloud Foundry and Kubernetes.
Declaration
public static bool IsCloudHosted { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Gets a value indicating whether the application appears to be running in a container.
Declaration
public static bool IsContainerized { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Gets a value indicating whether the platform is Kubernetes by checking if KUBERNETES_HOST has been set.
Declaration
public static bool IsKubernetes { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public static bool IsLinux { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public static bool IsOSX { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public static bool IsWindows { get; }
Property Value
Type |
Description |
System.Boolean |
|