public void HandleEvent(ApplicationStartedEvent eventToDispatch) { var dataSets = SimpleInjectorGenericFactory.Instance.GetObjectsOfType <T>(typeof(T)); foreach (var dataSet in dataSets) { var applicationName = dataSet.ApplicationName(); if (applicationName == null) { //null stands for framework instances... we dont need to handle these continue; } var schemaId = dataSet.SchemaId(); var storageToUse = LocateStorage(dataSet); var clientFilter = dataSet.ClientFilter(); if (clientFilter != null) { var strings = clientFilter.Split(','); foreach (var client in strings) { storageToUse.Add(new ApplicationFiltereableKey(applicationName, client, schemaId), dataSet); } } else { storageToUse.Add(new ApplicationFiltereableKey(applicationName, null, schemaId), dataSet); } } }
public void Handle(ApplicationStartedEvent message) { _logger.Debug("Initializing Providers. Count {0}", _providers.Count); RemoveMissingImplementations(); InitializeProviders(); }
public void Handle(ApplicationStartedEvent message) { _watchForChanges = _configService.WatchLibraryForChanges; if (_watchForChanges) { _rootFolderService.All().ForEach(x => StartWatchingPath(x.Path)); } }
public void HandleAsync(ApplicationStartedEvent message) { EnsureDefaultConfigFile(); DeleteOldValues(); if (!AnalyticsEnabled) { NzbDroneLogger.UnRegisterRemoteLoggers(); } }
public void HandleAsync(ApplicationStartedEvent message) { EnsureDefaultConfigFile(); DeleteOldValues(); }
public void HandleAsync(ApplicationStartedEvent message) { DeleteOldValues(); }
public void unRegisterEvent(ApplicationStartedEvent callBackFunc) { applicationStartedEvent -= callBackFunc; }
public void HandleAsync(ApplicationStartedEvent message) { PerformHealthCheck(_startupHealthChecks); }
public void Handle(ApplicationStartedEvent message) { // Sync indexers on app start UpdateLocalDefinitions(); }
public void Handle(ApplicationStartedEvent message) { Reconfigure(); }
public void HandleAsync(ApplicationStartedEvent message) { Clean(); }
public void HandleAsync(ApplicationStartedEvent message) { PerformHealthCheck(c => c.CheckOnStartup); }
public void HandleAsync(ApplicationStartedEvent message) { ProcessTrackedDownloads(); }
public void HandleAsync(ApplicationStartedEvent message) { GetXemSeriesIds(); }