C# Class CloudFoundry.Env.Current

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

Public Methods

Method 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

Method Description
Current ( ) : System
ParseApplication ( ) : void
ParseServices ( ) : void

Method Details

GetEnvVariable() public static method

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.
return string

Kill() public static method

Casuses the app to crash
public static Kill ( ) : void
return void

isRunningOnCloudFoundry() public static method

public static isRunningOnCloudFoundry ( ) : bool
return bool