Class Platform
Inheritance
System.Object
Platform
Assembly: Steeltoe.Common.dll
public static class Platform : object
Fields
|
Edit this page
View Source
Declaration
public const string KUBERNETES_HOST = null
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public const string NET_CORE = null
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public const string NET_FRAMEWORK = null
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public const string VCAP_APPLICATION = null
Field Value
Type |
Description |
System.String |
|
Properties
|
Edit this page
View Source
Gets a value indicating whether or not 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 or not 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
Declaration
public static bool IsFullFramework { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Gets a value indicating whether or not 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 IsNetCore { 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 |
|