/// <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); }
/// <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); }
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>(); }
/// <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>(); }