Source/NFX/Environment/Configuration.cs
/// <summary>
/// Resolves variable name into its value
/// </summary>
Resolves variable name into its value
Resolves variable name into its value
public string ResolveEnvironmentVar(string name, IEnvironmentVariableResolver resolver = null)
        {
          string value;
          if (resolver != null && resolver.ResolveEnvironmentVariable(name, out value)) return value;
          resolver = m_EnvironmentVarResolver;
          if (resolver != null && resolver.ResolveEnvironmentVariable(name, out value)) return value;
          resolver = ProcesswideEnvironmentVarResolver;
          if (resolver != null && resolver.ResolveEnvironmentVariable(name, out value)) return value;
          resolver = OSEnvironmentVariableResolver.Instance;
          if (resolver != null && resolver.ResolveEnvironmentVariable(name, out value)) return value;
          return string.Empty;
        }
public string ResolveEnvironmentVar ( string name , IEnvironmentVariableResolver resolver = null ) { string value ; if ( resolver != null && resolver . ResolveEnvironmentVariable ( name , out value ) ) return value ; resolver = m_EnvironmentVarResolver ; if ( resolver != null && resolver . ResolveEnvironmentVariable ( name , out value ) ) return value ; resolver = ProcesswideEnvironmentVarResolver ; if ( resolver != null && resolver . ResolveEnvironmentVariable ( name , out value ) ) return value ; resolver = OSEnvironmentVariableResolver . Instance ; if ( resolver != null && resolver . ResolveEnvironmentVariable ( name , out value ) ) return value ; return string . Empty ; }
Resolves variable name into its value
Resolves variable name into its value
name
string
resolver
IEnvironmentVariableResolver