C# Class NuGet.Services.BasicSearch.SafeRoleEnvironment

Safe role environment which allows this application to be run on both Azure Cloud Services and Azure Web Sites.
Mostra file Open project: NuGet/NuGet.Services.Metadata Class Usage Examples

Public Methods

Method Description
GetConfigurationSettingValue ( string configurationSettingName ) : string

Delegate the call because we don't want RoleEnvironment appearing in the function scope of the caller because that would trigger the assembly load: teh very thing we are attempting to avoid

Private Methods

Method Description
GetServiceRuntimeAssembly ( ) : Assembly

Loads and returns the latest available version of the service runtime assembly.

SafeRoleEnvironment ( ) : Microsoft.WindowsAzure.ServiceRuntime

Method Details

GetConfigurationSettingValue() public static method

Delegate the call because we don't want RoleEnvironment appearing in the function scope of the caller because that would trigger the assembly load: teh very thing we are attempting to avoid
public static GetConfigurationSettingValue ( string configurationSettingName ) : string
configurationSettingName string
return string