public LogWatcherPackageRegistrator( ILogWatcherSettingsAccessor logWatcherSettingsAccessor, ILogFileWatcher logFileWatcher) { _lazyLogWatcherSettings = new Lazy <ILogWatcherSettings>(logWatcherSettingsAccessor.GetSettings); _logWatcher = logFileWatcher; }
public LogFileWatcherBase(IServiceProvider serviceProvider) { _logWatcherSettingsAccessor = serviceProvider.GetService <ILogWatcherSettingsAccessor>(); _dte = Package.GetGlobalService(typeof(SDTE)) as DTE; _timer = new Timer(); }
public OrchardErrorLogFileWatcher(ILogWatcherSettingsAccessor logWatcherSettingsAccessor, DTE dte) { _logWatcherSettingsAccessor = logWatcherSettingsAccessor; _dte = dte; _timer = new Timer(); }