Exemplo n.º 1
0
                #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);
        }
Exemplo n.º 2
0
                #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));
        }
Exemplo n.º 3
0
 public SimulatorBuilder(
     IFileSystem fileSystem,
     CacheCleaner cacheCleaner,
     bool isHost, Action <LockFile> registerLock)
 {
     _fileSystem         = fileSystem;
     _cacheCleaner       = cacheCleaner;
     _isHost             = isHost;
     _registerLock       = registerLock;
     _outputDirGenerator = new OutputDirGenerator(_fileSystem);
 }