C# Class CloudFoundry.Env.Current

Class containing static fields for interacting with environment variables provided by cloud foundry.
Afficher le fichier Open project: cloudfoundry-community/dotnet-cfenv

Méthodes publiques

Méthode Description
GetEnvVariable ( string key ) : string

Gives you a way to pull environment variables that aren't provided by this class in case future versions of the CLR use a different API to intereact with environment variables.

Kill ( ) : void

Casuses the app to crash

isRunningOnCloudFoundry ( ) : bool

Private Methods

Méthode Description
Current ( ) : System
ParseApplication ( ) : void
ParseServices ( ) : void

Method Details

GetEnvVariable() public static méthode

Gives you a way to pull environment variables that aren't provided by this class in case future versions of the CLR use a different API to intereact with environment variables.
public static GetEnvVariable ( string key ) : string
key string The name of the environment variable you need.
Résultat string

Kill() public static méthode

Casuses the app to crash
public static Kill ( ) : void
Résultat void

isRunningOnCloudFoundry() public static méthode

public static isRunningOnCloudFoundry ( ) : bool
Résultat bool