Add InheritEnvironmentVariables to StdioClientTransportOptions (#1563)
This commit is contained in:
parent
4498146a83
commit
d34fac48d5
1 changed files with 395 additions and 6 deletions
|
|
@ -111,6 +111,11 @@ public sealed partial class StdioClientTransport : IClientTransport
|
|||
#endif
|
||||
}
|
||||
|
||||
if (!_options.InheritEnvironmentVariables)
|
||||
{
|
||||
startInfo.Environment.Clear();
|
||||
}
|
||||
|
||||
if (_options.EnvironmentVariables != null)
|
||||
{
|
||||
foreach (var entry in _options.EnvironmentVariables)
|
||||
|
|
|
|||
Loading…
Reference in a new issue