public AspNet5Initializer(OmnisharpWorkspace workspace,
                           IOmnisharpEnvironment env,
                           IOptions <OmniSharpOptions> optionsAccessor,
                           ILoggerFactory loggerFactory,
                           IMetadataFileReferenceCache metadataFileReferenceCache)
 {
     _workspace = workspace;
     _env       = env;
     _options   = optionsAccessor.Options;
     _logger    = loggerFactory.Create <AspNet5Initializer>();
     _metadataFileReferenceCache = metadataFileReferenceCache;
     _designTimeHostManager      = new DesignTimeHostManager(loggerFactory);
 }
예제 #2
0
        public AspNet5ProjectSystem(OmnisharpWorkspace workspace,
                                    IOmnisharpEnvironment env,
                                    IOptions <OmniSharpOptions> optionsAccessor,
                                    ILoggerFactory loggerFactory,
                                    IMetadataFileReferenceCache metadataFileReferenceCache,
                                    IApplicationShutdown shutdown,
                                    IFileSystemWatcher watcher,
                                    AspNet5Context context)
        {
            _workspace = workspace;
            _env       = env;
            _options   = optionsAccessor.Options;
            _logger    = loggerFactory.Create <AspNet5ProjectSystem>();
            _metadataFileReferenceCache = metadataFileReferenceCache;
            _designTimeHostManager      = new DesignTimeHostManager(loggerFactory);
            _context = context;
            _watcher = watcher;

            shutdown.ShutdownRequested.Register(OnShutdown);
        }
예제 #3
0
        public AspNet5ProjectSystem(OmnisharpWorkspace workspace,
                                    IOmnisharpEnvironment env,
                                    IOptions<OmniSharpOptions> optionsAccessor,
                                    ILoggerFactory loggerFactory,
                                    IMetadataFileReferenceCache metadataFileReferenceCache,
                                    IApplicationLifetime lifetime,
                                    IFileSystemWatcher watcher,
                                    AspNet5Context context)
        {
            _workspace = workspace;
            _env = env;
            _options = optionsAccessor.Options;
            _logger = loggerFactory.Create<AspNet5ProjectSystem>();
            _metadataFileReferenceCache = metadataFileReferenceCache;
            _designTimeHostManager = new DesignTimeHostManager(loggerFactory);
            _context = context;
            _watcher = watcher;

            lifetime.ApplicationStopping.Register(OnShutdown);
        }
예제 #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);
        }