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);
                }
            }
        }
Exemplo n.º 2
0
        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));
            }
        }
Exemplo n.º 4
0
        public void HandleAsync(ApplicationStartedEvent message)
        {
            EnsureDefaultConfigFile();
            DeleteOldValues();

            if (!AnalyticsEnabled)
            {
                NzbDroneLogger.UnRegisterRemoteLoggers();
            }
        }
Exemplo n.º 5
0
 public void HandleAsync(ApplicationStartedEvent message)
 {
     EnsureDefaultConfigFile();
     DeleteOldValues();
 }
Exemplo n.º 6
0
 public void HandleAsync(ApplicationStartedEvent message)
 {
     DeleteOldValues();
 }
Exemplo n.º 7
0
 public void unRegisterEvent(ApplicationStartedEvent callBackFunc)
 {
     applicationStartedEvent -= callBackFunc;
 }
Exemplo n.º 8
0
 public void HandleAsync(ApplicationStartedEvent message)
 {
     PerformHealthCheck(_startupHealthChecks);
 }
 public void Handle(ApplicationStartedEvent message)
 {
     // Sync indexers on app start
     UpdateLocalDefinitions();
 }
Exemplo n.º 10
0
 public void Handle(ApplicationStartedEvent message)
 {
     Reconfigure();
 }
Exemplo n.º 11
0
 public void HandleAsync(ApplicationStartedEvent message)
 {
     Clean();
 }
Exemplo n.º 12
0
 public void HandleAsync(ApplicationStartedEvent message)
 {
     PerformHealthCheck(c => c.CheckOnStartup);
 }
Exemplo n.º 13
0
 public void HandleAsync(ApplicationStartedEvent message)
 {
     ProcessTrackedDownloads();
 }
Exemplo n.º 14
0
 public void HandleAsync(ApplicationStartedEvent message)
 {
     GetXemSeriesIds();
 }