public IDisposable Using(DockerWrapperInfo info) => Disposable.Create( _envChain.Append(_virtualEnvironment.Set(info.Platform).Set(info.Platform)), _processChain.Append(_dockerProcessWrapperFactory(info)), _processChain.Append(info.Platform == OperatingSystem.Windows ? _cmdProcessWrapper : _shProcessWrapper));
public IDisposable Using(DotnetWrapperInfo info) { _info = info; return(Disposable.Create(_processChain.Append(this))); }
public IDisposable Using() => Disposable.Create( _envChain.Append(_virtualEnvironment.Set(OperatingSystem.Unix).Set(this)), _processChain.Append(this), _processChain.Append(_wslProcessWrapper));