public LogWatcherPackageRegistrator(
     ILogWatcherSettingsAccessor logWatcherSettingsAccessor,
     ILogFileWatcher logFileWatcher)
 {
     _lazyLogWatcherSettings = new Lazy <ILogWatcherSettings>(logWatcherSettingsAccessor.GetSettings);
     _logWatcher             = logFileWatcher;
 }
示例#2
0
        public LogFileWatcherBase(IServiceProvider serviceProvider)
        {
            _logWatcherSettingsAccessor = serviceProvider.GetService <ILogWatcherSettingsAccessor>();
            _dte = Package.GetGlobalService(typeof(SDTE)) as DTE;

            _timer = new Timer();
        }
示例#3
0
 public OrchardErrorLogFileWatcher(ILogWatcherSettingsAccessor logWatcherSettingsAccessor, DTE dte)
 {
     _logWatcherSettingsAccessor = logWatcherSettingsAccessor;
     _dte   = dte;
     _timer = new Timer();
 }