Ejemplo 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);
        }
Ejemplo n.º 2
0
 public UnoBuildWrapper(SimulatorBuilder simulatorBuilder, IObserver <IBinaryMessage> buildEvents, IFileSystem fileSystem, params IErrorHelper[] errorHelpers)
 {
     _simulatorBuilder = simulatorBuilder;
     _buildEvents      = buildEvents.ToProgress();
     _errorHelpers     = new CombinedErrorHelper
     {
         Helpers = errorHelpers
     };
 }
Ejemplo n.º 3
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));
        }