Beispiel #1
0
 public InstallerBuilderServices(ILoggerFactory loggerFactory,
                                 IWorkspaceSelector workspaceSelector)
 {
     LoggerFactory            = loggerFactory;
     _operatingSystemServices = new OperatingSystemServices(loggerFactory);
     _workspaceSelector       = workspaceSelector;
 }
Beispiel #2
0
 public TfsGateway(IFileSystemManager fileSystemManager, IWorkspaceSelector workspaceSelector, IThreadingServices threadingServices)
 {
     _fileSystemManager   = fileSystemManager;
     _workspaceSelector   = workspaceSelector;
     this.Tfs             = TfsCollectionFactory.Create();
     _tfsCache            = new TfsCache(Tfs, ROOT_FOLDER, threadingServices);
     _historyCacheManager = new HistoryCacheManager(this.VersionControlServer);
 }
Beispiel #3
0
        public BuildServices(ILoggerFactory loggerFactory,
                             IWorkspaceSelector workspaceSelector)
        {
            if (loggerFactory == null)
            {
                throw new ArgumentNullException(nameof(loggerFactory));
            }

            if (workspaceSelector == null)
            {
                throw new ArgumentNullException(nameof(workspaceSelector));
            }

            this.LoggerFactory           = loggerFactory;
            this.OperatingSystemServices = new OperatingSystemServices(loggerFactory);
            this.TfsGateway = new TFS.TfsGateway(this.OperatingSystemServices.FileSystem, workspaceSelector, this.OperatingSystemServices.ThreadingServices);
        }
Beispiel #4
0
        public TfsSourceControlAdapter(IWorkspaceSelector workspaceSelector)
        {
            _workspaceSelector = workspaceSelector;

            this.Tfs = TfsCollectionFactory.Create();
        }