C# 클래스 Prototype.Service.Settings.Environment

This class retrives values from environment variables. If the requested variable is not found, then it will be pulled from the app config and set. This should allow the application to work with docker environment variables when run in a container, or app settings when run nativly in windows or whilst debugging or testing :-D
상속: IEnvironment
파일 보기 프로젝트 열기: radicalgeek/SampleMicroservice

공개 메소드들

메소드 설명
GetEnvironmentVariable ( string requestedVariable ) : string

Retrive an environment variable. If the variable dosn't exist it will be created and populated from the app config

GetServiceName ( ) : string
GetServiceVersion ( ) : int

메소드 상세

GetEnvironmentVariable() 공개 메소드

Retrive an environment variable. If the variable dosn't exist it will be created and populated from the app config
public GetEnvironmentVariable ( string requestedVariable ) : string
requestedVariable string the Variable name
리턴 string

GetServiceName() 공개 메소드

public GetServiceName ( ) : string
리턴 string

GetServiceVersion() 공개 메소드

public GetServiceVersion ( ) : int
리턴 int