Ejemplo n.º 1
0
 public PackagesRestoreTool(ILoggerFactory logger, AspNet5Context context, AspNet5Paths paths)
 {
     _logger       = logger.Create <PackagesRestoreTool>();
     _context      = context;
     _paths        = paths;
     _lock         = new object();
     _projectLocks = new Dictionary <string, object>();
     _semaphore    = new SemaphoreSlim(Environment.ProcessorCount / 2);
 }
Ejemplo n.º 2
0
        public AspNet5TestCommandProvider(AspNet5Context context,
                                          IOmnisharpEnvironment env,
                                          ILoggerFactory loggerFactory,
                                          IEventEmitter emitter,
                                          IOptions <OmniSharpOptions> options)
        {
            _context = context;
            var aspNet5Paths = new AspNet5Paths(env, options.Options, loggerFactory);

            _dnx = aspNet5Paths.Dnx != null ? aspNet5Paths.Dnx + " ." : aspNet5Paths.K;
        }
Ejemplo n.º 3
0
 public PackagesRestoreTool(OmniSharpOptions options, ILoggerFactory logger, IEventEmitter emitter, AspNet5Context context, AspNet5Paths paths)
 {
     _options      = options;
     _logger       = logger.Create <PackagesRestoreTool>();
     _emitter      = emitter;
     _context      = context;
     _paths        = paths;
     _lock         = new object();
     _projectLocks = new Dictionary <string, object>();
     _semaphore    = new SemaphoreSlim(Environment.ProcessorCount / 2);
 }
Ejemplo n.º 4
0
        public AspNet5ProjectSystem(OmnisharpWorkspace workspace,
                                    IOmnisharpEnvironment env,
                                    IOptions <OmniSharpOptions> optionsAccessor,
                                    ILoggerFactory loggerFactory,
                                    IMetadataFileReferenceCache metadataFileReferenceCache,
                                    IApplicationLifetime lifetime,
                                    IFileSystemWatcher watcher,
                                    IEventEmitter emitter,
                                    AspNet5Context context)
        {
            _workspace = workspace;
            _env       = env;
            _logger    = loggerFactory.Create <AspNet5ProjectSystem>();
            _metadataFileReferenceCache = metadataFileReferenceCache;
            _options               = optionsAccessor.Options;
            _aspNet5Paths          = new AspNet5Paths(env, _options, loggerFactory);
            _designTimeHostManager = new DesignTimeHostManager(loggerFactory, _aspNet5Paths);
            _packagesRestoreTool   = new PackagesRestoreTool(_options, loggerFactory, emitter, context, _aspNet5Paths);
            _context               = context;
            _watcher               = watcher;
            _emitter               = emitter;

            lifetime.ApplicationStopping.Register(OnShutdown);
        }
        public AspNet5ProjectSystem(OmnisharpWorkspace workspace,
                                    IOmnisharpEnvironment env,
                                    IOptions<OmniSharpOptions> optionsAccessor,
                                    ILoggerFactory loggerFactory,
                                    IMetadataFileReferenceCache metadataFileReferenceCache,
                                    IApplicationLifetime lifetime,
                                    IFileSystemWatcher watcher,
                                    IEventEmitter emitter,
                                    AspNet5Context context)
        {
            _workspace = workspace;
            _env = env;
            _logger = loggerFactory.CreateLogger<AspNet5ProjectSystem>();
            _metadataFileReferenceCache = metadataFileReferenceCache;
            _options = optionsAccessor.Options;
            _aspNet5Paths = new AspNet5Paths(env, _options, loggerFactory);
            _designTimeHostManager = new DesignTimeHostManager(loggerFactory, _aspNet5Paths);
            //            _packagesRestoreTool = new PackagesRestoreTool(_options, loggerFactory, emitter, context, _aspNet5Paths);
            _context = context;
            _watcher = watcher;
            _emitter = emitter;

            lifetime.ApplicationStopping.Register(OnShutdown);
        }
Ejemplo n.º 6
0
 public DesignTimeHostManager(ILoggerFactory loggerFactory, AspNet5Paths paths)
 {
     _logger = loggerFactory.Create <DesignTimeHostManager>();
     _paths  = paths;
 }
 public DesignTimeHostManager(ILoggerFactory loggerFactory, AspNet5Paths paths)
 {
     _logger = loggerFactory.CreateLogger<DesignTimeHostManager>();
     _paths = paths;
 }