Ejemplo n.º 1
0
 public Router(ApplicationServer applicationServer, ServiceProvider serviceProvider, ConsoleProvider consoleProvider, EnviromentProvider enviromentProvider)
 {
     _applicationServer = applicationServer;
     _serviceProvider = serviceProvider;
     _consoleProvider = consoleProvider;
     _enviromentProvider = enviromentProvider;
 }
Ejemplo n.º 2
0
        public static bool Enabled()
        {
            var enviromentProvider = new EnviromentProvider();
            var configFileProvider = new ConfigFileProvider(enviromentProvider);

            return configFileProvider.EnableProfiler;
        }
Ejemplo n.º 3
0
 public SecurityProvider(ConfigFileProvider configFileProvider, EnviromentProvider enviromentProvider,
                             ProcessProvider processProvider)
 {
     _configFileProvider = configFileProvider;
     _enviromentProvider = enviromentProvider;
     _processProvider = processProvider;
 }
Ejemplo n.º 4
0
 public LogProvider(IDatabase database, LogDbContext logDbContext, DiskProvider diskProvider, EnviromentProvider enviromentProvider)
 {
     _database = database;
     _logDbContext = logDbContext;
     _diskProvider = diskProvider;
     _enviromentProvider = enviromentProvider;
 }
Ejemplo n.º 5
0
        public ConfigFileProvider(EnviromentProvider enviromentProvider)
        {
            _enviromentProvider = enviromentProvider;
            _configFile = _enviromentProvider.GetConfigPath();

            CreateDefaultConfigFile();
        }
Ejemplo n.º 6
0
 public UpdateProvider(HttpProvider httpProvider, ConfigProvider configProvider,
     EnviromentProvider enviromentProvider, DiskProvider diskProvider)
 {
     _httpProvider = httpProvider;
     _configProvider = configProvider;
     _enviromentProvider = enviromentProvider;
     _diskProvider = diskProvider;
 }
Ejemplo n.º 7
0
 public UpdateController(UpdateProvider updateProvider, JobProvider jobProvider,
     EnviromentProvider enviromentProvider, DiskProvider diskProvider)
 {
     _updateProvider = updateProvider;
     _jobProvider = jobProvider;
     _enviromentProvider = enviromentProvider;
     _diskProvider = diskProvider;
 }
Ejemplo n.º 8
0
 public BannerDownloadJob(SeriesProvider seriesProvider, HttpProvider httpProvider, DiskProvider diskProvider,
     EnviromentProvider enviromentProvider)
 {
     _seriesProvider = seriesProvider;
     _httpProvider = httpProvider;
     _diskProvider = diskProvider;
     _enviromentProvider = enviromentProvider;
 }
Ejemplo n.º 9
0
 public UpdateProvider(DiskProvider diskProvider, ServiceProvider serviceProvider,
     ProcessProvider processProvider, EnviromentProvider enviromentProvider, IISProvider iisProvider)
 {
     _diskProvider = diskProvider;
     _serviceProvider = serviceProvider;
     _processProvider = processProvider;
     _enviromentProvider = enviromentProvider;
     _iisProvider = iisProvider;
 }
Ejemplo n.º 10
0
 public AppUpdateJob(UpdateProvider updateProvider, EnviromentProvider enviromentProvider, DiskProvider diskProvider,
     HttpProvider httpProvider, ProcessProvider processProvider, ArchiveProvider archiveProvider, ConfigFileProvider configFileProvider)
 {
     _updateProvider = updateProvider;
     _enviromentProvider = enviromentProvider;
     _diskProvider = diskProvider;
     _httpProvider = httpProvider;
     _processProvider = processProvider;
     _archiveProvider = archiveProvider;
     _configFileProvider = configFileProvider;
 }
Ejemplo n.º 11
0
 public ApplicationServer(ConfigFileProvider configFileProvider, IISProvider iisProvider,
                    DebuggerProvider debuggerProvider, EnviromentProvider enviromentProvider,
                    ProcessProvider processProvider, MonitoringProvider monitoringProvider, SecurityProvider securityProvider)
 {
     _configFileProvider = configFileProvider;
     _iisProvider = iisProvider;
     _debuggerProvider = debuggerProvider;
     _enviromentProvider = enviromentProvider;
     _processProvider = processProvider;
     _monitoringProvider = monitoringProvider;
     _securityProvider = securityProvider;
 }
Ejemplo n.º 12
0
        public static void PreStart()
        {
            var enviromentProvider = new EnviromentProvider();

            LogManager.Configuration = new XmlLoggingConfiguration(enviromentProvider.GetNlogConfigPath(), false);

            LogConfiguration.RegisterUdpLogger();
            LogConfiguration.RegisterRemote();
            LogConfiguration.RegisterConsoleLogger(LogLevel.Info, "NzbDrone.Web.MvcApplication");
            LogConfiguration.RegisterConsoleLogger(LogLevel.Info, "NzbDrone.Core.CentralDispatch");
            LogConfiguration.RegisterRollingFileLogger(enviromentProvider.GetLogFileName(), LogLevel.Trace);

        }
Ejemplo n.º 13
0
        public CentralDispatch()
        {
            _enviromentProvider = new EnviromentProvider();

            logger.Debug("Initializing Kernel:");
            Kernel = new StandardKernel();

            var resolver = new NinjectDependencyResolver(Kernel);
            AspNetHost.SetResolver(resolver);

            InitDatabase();
            InitReporting();

            InitQuality();
            InitExternalNotifications();
            InitIndexers();
            InitJobs();
        }
Ejemplo n.º 14
0
        static CoreTest()
        {
            //Delete old db files
            var oldDbFiles = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.sdf", SearchOption.AllDirectories);
            foreach (var file in oldDbFiles)
            {
                try
                {
                    File.Delete(file);
                }
                catch { }
            }

            //Delete App_data folder
            var appData = new EnviromentProvider().GetAppDataPath();

            if (Directory.Exists(appData))
            {
                Directory.Delete(appData, true);
            }

            TestDbHelper.CreateDataBaseTemplate();
        }
Ejemplo n.º 15
0
 public RestProvider(EnviromentProvider enviromentProvider)
 {
     _enviromentProvider = enviromentProvider;
 }
Ejemplo n.º 16
0
 public BackupProvider(EnviromentProvider enviromentProvider)
 {
     _enviromentProvider = enviromentProvider;
 }
Ejemplo n.º 17
0
 public HealthController(EnviromentProvider enviromentProvider, IDatabase database)
 {
     _enviromentProvider = enviromentProvider;
     _database = database;
 }
Ejemplo n.º 18
0
 public SharedController(EnviromentProvider enviromentProvider)
 {
     _enviromentProvider = enviromentProvider;
 }
Ejemplo n.º 19
0
 public Connection(EnviromentProvider enviromentProvider)
 {
     _enviromentProvider = enviromentProvider;
 }
Ejemplo n.º 20
0
 static HtmlIncludeExtentions()
 {
     versionString = new EnviromentProvider().Version.ToString().Replace('.', '_');
     isProduction = EnviromentProvider.IsProduction;
 }
Ejemplo n.º 21
0
 public LogController(LogProvider logProvider, EnviromentProvider enviromentProvider, DiskProvider diskProvider)
 {
     _logProvider = logProvider;
     _enviromentProvider = enviromentProvider;
     _diskProvider = diskProvider;
 }
Ejemplo n.º 22
0
 public TvDbProvider(EnviromentProvider enviromentProvider)
 {
     _enviromentProvider = enviromentProvider;
     _handler = new TvdbHandler(new XmlCacheProvider(_enviromentProvider.GetCacheFolder()), TVDB_APIKEY);
 }