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); }
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(); }
public TrackersService(HttpService httpService, IViewerLogger viewerLogger) { this._httpService = httpService; this._viewerLogger = viewerLogger; }
public static ViewerLoggerEventTimer EnterEvent(this IViewerLogger viewerLogger, string eventName) => new ViewerLoggerEventTimer(viewerLogger, eventName);
public SyncService(IServiceProvider serviceProvider, IViewerLogger viewerLogger) { this._serviceProvider = serviceProvider; this._viewerLogger = viewerLogger; this._task = new TaskFactory(TimeSpan.FromMinutes(10), this.SyncCore); }