public NugetService(ILogger logger,
                     NugetConfigService configService,
                     FileService fileService,
                     FrameworkService frameworkService,
                     NugetPackageSource source,
                     SourceCacheContext cacheContext)
 {
     _logger           = logger;
     _configService    = configService;
     _fileService      = fileService;
     _frameworkService = frameworkService;
     _cacheContext     = cacheContext;
     Source            = source;
 }
Exemplo n.º 2
0
 static EditorContext()
 {
     MainThreadSynchContext = SynchronizationContext.Current;
     Logger                         = new UnityConsoleLogger();
     FileService                    = new FileService();
     FrameworkService               = new FrameworkService();
     LocalPackagesConfigService     = new LocalPackagesConfigService(FileService);
     DllFilesService                = new DllFilesService(FileService, LocalPackagesConfigService);
     InstalledPackagesConfigService = new InstalledPackagesConfigService(FileService);
     AssembliesService              = new AssembliesService(FileService, InstalledPackagesConfigService);
     NugetConfigService             = new NugetConfigService(FileService);
     NuspecFileService              = new NuspecFileService(FileService);
     RemotePackagesService          = new RemotePackagesService(NugetConfigService, FileService, FrameworkService, LocalPackagesConfigService, Logger);
     LocalPackagesService           = new LocalPackagesService(InstalledPackagesConfigService, LocalPackagesConfigService, NuspecFileService, DllFilesService, AssembliesService);
 }