Example #1
0
 public KeywordsService(IServiceProvider serviceProvider, IViewerLogger viewerLogger, ConfigService config, RegexCache regexCache)
 {
     this._serviceProvider    = serviceProvider;
     this._viewerLogger       = viewerLogger;
     this._regexCache         = regexCache;
     config.OnAppConfChanged += this.Reload;
     this.Reload(config.AppConf);
 }
Example #2
0
 public ViewerLoggerEventTimer(IViewerLogger viewerLogger, string eventName)
 {
     this._viewerLogger = viewerLogger ?? throw new ArgumentNullException(nameof(viewerLogger));
     this._eventName    = eventName ?? throw new ArgumentNullException(nameof(eventName));
     this._stopwatch    = Stopwatch.StartNew();
 }
Example #3
0
 public TrackersService(HttpService httpService, IViewerLogger viewerLogger)
 {
     this._httpService  = httpService;
     this._viewerLogger = viewerLogger;
 }
Example #4
0
 public static ViewerLoggerEventTimer EnterEvent(this IViewerLogger viewerLogger, string eventName)
 => new ViewerLoggerEventTimer(viewerLogger, eventName);
Example #5
0
 public SyncService(IServiceProvider serviceProvider, IViewerLogger viewerLogger)
 {
     this._serviceProvider = serviceProvider;
     this._viewerLogger    = viewerLogger;
     this._task            = new TaskFactory(TimeSpan.FromMinutes(10), this.SyncCore);
 }