1 implementation of IEnvironmentProvider
Microsoft.DotNet.Cli.Utils (1)
EnvironmentProvider.cs (1)
11IEnumerable<string>? searchPathsOverride = null) : IEnvironmentProvider
39 references to IEnvironmentProvider
dotnet (36)
BuildServer\BuildServerProvider.cs (2)
15IEnvironmentProvider environmentProvider = null, 20private readonly IEnvironmentProvider _environmentProvider = environmentProvider ?? new EnvironmentProvider();
CommandFactory\CommandResolution\AbstractPathBasedCommandResolver.cs (2)
13protected IEnvironmentProvider _environment; 16public AbstractPathBasedCommandResolver(IEnvironmentProvider environment,
CommandFactory\CommandResolution\AppBaseCommandResolver.cs (1)
10public class AppBaseCommandResolver(IEnvironmentProvider environment,
CommandFactory\CommandResolution\DefaultCommandResolverPolicy.cs (1)
42IEnvironmentProvider environment,
CommandFactory\CommandResolution\GenericPlatformCommandSpecFactory.cs (1)
16IEnvironmentProvider environment)
CommandFactory\CommandResolution\IPlatformCommandSpecFactory.cs (1)
16IEnvironmentProvider environment);
CommandFactory\CommandResolution\PathCommandResolver.cs (1)
10public class PathCommandResolver(IEnvironmentProvider environment,
CommandFactory\CommandResolution\ProjectDependenciesCommandResolver.cs (3)
17private readonly IEnvironmentProvider _environment; 21IEnvironmentProvider environment, 158private static IEnumerable<string> GetAllowedCommandExtensionsFromEnvironment(IEnvironmentProvider environment)
CommandFactory\CommandResolution\ProjectFactory.cs (2)
13internal class ProjectFactory(IEnvironmentProvider environment) 17private readonly IEnvironmentProvider _environment = environment;
CommandFactory\CommandResolution\ProjectPathCommandResolver.cs (1)
11public class ProjectPathCommandResolver(IEnvironmentProvider environment,
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (2)
18IEnvironmentProvider environment) : ICommandResolver 25private readonly IEnvironmentProvider _environment = environment;
CommandFactory\CommandResolution\PublishedPathCommandResolver.cs (2)
12IEnvironmentProvider environment, 17private readonly IEnvironmentProvider _environment = environment;
CommandFactory\CommandResolution\ScriptCommandResolverPolicy.cs (1)
30IEnvironmentProvider environment,
CommandFactory\CommandResolution\WindowsExePreferredCommandSpecFactory.cs (1)
16IEnvironmentProvider environment)
NuGetSignatureVerificationEnabler.cs (3)
15public static void ConditionallyEnable(ForwardingApp forwardingApp, IEnvironmentProvider? environmentProvider = null) 29public static void ConditionallyEnable(MSBuildForwardingApp forwardingApp, IEnvironmentProvider? environmentProvider = null) 43private static string GetSignatureVerificationEnablementValue(IEnvironmentProvider? environmentProvider)
ShellShim\EnvironmentPathFactory.cs (2)
14IEnvironmentProvider? environmentProvider = null) 56IEnvironmentProvider? environmentProvider = null)
ShellShim\LinuxEnvironmentPath.cs (2)
15private readonly IEnvironmentProvider _environmentProvider; 27IEnvironmentProvider environmentProvider,
ShellShim\OsxBashEnvironmentPath.cs (2)
15IEnvironmentProvider environmentProvider, 22private readonly IEnvironmentProvider _environmentProvider = environmentProvider ?? throw new ArgumentNullException(nameof(environmentProvider));
ShellShim\OsxZshEnvironmentPathInstruction.cs (2)
14IEnvironmentProvider environmentProvider 19private readonly IEnvironmentProvider _environmentProvider = environmentProvider ?? throw new ArgumentNullException(nameof(environmentProvider));
ShellShim\WindowsEnvironmentPath.cs (2)
13IEnvironmentProvider expandedEnvironmentReader, 26private readonly IEnvironmentProvider _expandedEnvironmentReader = expandedEnvironmentReader ?? throw new ArgumentNullException(nameof(expandedEnvironmentReader));
ShellShim\ZshDetector.cs (1)
16public static bool IsZshTheUsersShell(IEnvironmentProvider environmentProvider)
Telemetry\TelemetryClient.cs (1)
108public TelemetryClient(string? sessionId, IEnvironmentProvider? environmentProvider = null)
Microsoft.DotNet.Cli.Utils (1)
Env.cs (1)
10private static readonly IEnvironmentProvider s_environment = new EnvironmentProvider();
Microsoft.NET.Build.Containers (2)
Registry\RegistrySettings.cs (2)
10public RegistrySettings(string? registryName = null, IEnvironmentProvider? environment = null) 71private static bool IsInsecureRegistry(IEnvironmentProvider environment, string registryName)