#pragma warning restore 0414 public UnoBuild(string version) { _fileSystem = new Shell(); var cacheCleaner = new CacheCleaner(_fileSystem, version); _simulatorBuilder = new SimulatorBuilder(_fileSystem, cacheCleaner, isHost: true, registerLock: (e) => lockFile = e); }
#pragma warning restore 0414 public static UnoBuildWrapper Create(IFileSystem shell, string version, IObserver <IBinaryMessage> buildEvents, bool isHost, params IErrorHelper[] errorHelpers) { var cacheCleaner = new CacheCleaner(shell, version); var simulatorBuilder = new SimulatorBuilder(shell, cacheCleaner, isHost: isHost, registerLock: (e) => lockFile = e); return(new UnoBuildWrapper( simulatorBuilder, buildEvents, shell, errorHelpers)); }
public SimulatorBuilder( IFileSystem fileSystem, CacheCleaner cacheCleaner, bool isHost, Action <LockFile> registerLock) { _fileSystem = fileSystem; _cacheCleaner = cacheCleaner; _isHost = isHost; _registerLock = registerLock; _outputDirGenerator = new OutputDirGenerator(_fileSystem); }