Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JSLintTask" /> class with custom services.
        /// </summary>
        /// <param name="jsLintFactory">The JSLint factory.</param>
        /// <param name="fileSystemWrapper">The file system wrapper.</param>
        /// <param name="abstractionFactory">The task logging helper factory.</param>
        /// <param name="settingsRepository">The settings repository.</param>
        internal JSLintTask(IJSLintFactory jsLintFactory, IFileSystemWrapper fileSystemWrapper, IAbstractionFactory abstractionFactory, ISettingsRepository settingsRepository)
        {
            this.jsLintFactory      = jsLintFactory;
            this.fileSystemWrapper  = fileSystemWrapper;
            this.settingsRepository = settingsRepository;

            this.LoggingHelper = abstractionFactory.CreateTaskLoggingHelper(this);
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JSLintTask" /> class with custom services.
        /// </summary>
        /// <param name="jsLintFactory">The JSLint factory.</param>
        /// <param name="fileSystemWrapper">The file system wrapper.</param>
        /// <param name="taskLoggingHelperFactory">The task logging helper factory.</param>
        /// <param name="reporterFactory">The reporter factory.</param>
        public JSLintTask(IJSLintFactory jsLintFactory, IFileSystemWrapper fileSystemWrapper, ITaskLoggingHelperFactory taskLoggingHelperFactory, IReporterFactory reporterFactory)
        {
            this.jsLintFactory     = jsLintFactory;
            this.fileSystemWrapper = fileSystemWrapper;
            this.reporterFactory   = reporterFactory;

            this.LoggingHelper = taskLoggingHelperFactory.Create(this);
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JSLintTask" /> class with custom services.
        /// </summary>
        /// <param name="jsLintFactory">The JSLint factory.</param>
        /// <param name="fileSystemWrapper">The file system wrapper.</param>
        /// <param name="abstractionFactory">The task logging helper factory.</param>
        /// <param name="settingsRepository">The settings repository.</param>
        internal JSLintTask(IJSLintFactory jsLintFactory, IFileSystemWrapper fileSystemWrapper, IAbstractionFactory abstractionFactory, ISettingsRepository settingsRepository)
        {
            this.jsLintFactory = jsLintFactory;
            this.fileSystemWrapper = fileSystemWrapper;
            this.settingsRepository = settingsRepository;

            this.LoggingHelper = abstractionFactory.CreateTaskLoggingHelper(this);
        }
 public ConsoleJSLintProvider(IJSLintFactory jsLintFactory, IFileSystemWrapper fileSystemWrapper, ISettingsRepository settingRepository, IConsoleWriter consoleWriter, IViewFactory viewFactory)
 {
     this.jsLintFactory = jsLintFactory;
     this.fileSystemWrapper = fileSystemWrapper;
     this.settingRepository = settingRepository;
     this.consoleWriter = consoleWriter;
     this.viewFactory = viewFactory;
 }
Esempio n. 5
0
 public ConsoleJSLintProvider(IJSLintFactory jsLintFactory, IFileSystemWrapper fileSystemWrapper, ISettingsRepository settingRepository, IConsoleWriter consoleWriter, IViewFactory viewFactory)
 {
     this.jsLintFactory     = jsLintFactory;
     this.fileSystemWrapper = fileSystemWrapper;
     this.settingRepository = settingRepository;
     this.consoleWriter     = consoleWriter;
     this.viewFactory       = viewFactory;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="VisualStudioJSLintProvider" /> class.
        /// </summary>
        /// <param name="serviceProvider">The service provider.</param>
        /// <param name="errorListProvider">The error list provider.</param>
        /// <param name="jsLintFactory">The JSLint factory.</param>
        /// <param name="fileSystemWrapper">The file system wrapper.</param>
        /// <param name="settingsRepository">The settings repository.</param>
        /// <param name="cacheProvider">The cache provider.</param>
        public VisualStudioJSLintProvider(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IJSLintFactory jsLintFactory, IFileSystemWrapper fileSystemWrapper, ISettingsRepository settingsRepository, ICacheProvider cacheProvider)
        {
            this.serviceProvider = serviceProvider;
            this.errorListProvider = errorListProvider;
            this.jsLintFactory = jsLintFactory;
            this.fileSystemWrapper = fileSystemWrapper;
            this.settingsRepository = settingsRepository;
            this.cacheProvider = cacheProvider;

            this.statusBar = this.serviceProvider.GetService<SVsStatusbar, IVsStatusbar>();
            this.solutionService = this.serviceProvider.GetService<SVsSolution, IVsSolution>();
        }
Esempio n. 7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VisualStudioJSLintProvider" /> class.
        /// </summary>
        /// <param name="serviceProvider">The service provider.</param>
        /// <param name="errorListProvider">The error list provider.</param>
        /// <param name="jsLintFactory">The JSLint factory.</param>
        /// <param name="fileSystemWrapper">The file system wrapper.</param>
        /// <param name="settingsRepository">The settings repository.</param>
        /// <param name="cacheProvider">The cache provider.</param>
        public VisualStudioJSLintProvider(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IJSLintFactory jsLintFactory, IFileSystemWrapper fileSystemWrapper, ISettingsRepository settingsRepository, ICacheProvider cacheProvider)
        {
            this.serviceProvider    = serviceProvider;
            this.errorListProvider  = errorListProvider;
            this.jsLintFactory      = jsLintFactory;
            this.fileSystemWrapper  = fileSystemWrapper;
            this.settingsRepository = settingsRepository;
            this.cacheProvider      = cacheProvider;

            this.statusBar       = this.serviceProvider.GetService <SVsStatusbar, IVsStatusbar>();
            this.solutionService = this.serviceProvider.GetService <SVsSolution, IVsSolution>();
        }