예제 #1
0
 public static void Start()
 {
     if (_configurationManagerWrapper.AppSetting("BlogMonitorEnabled").ToABool())
     {
         int monitorInterval = _configurationManagerWrapper.AppSetting("BlogMonitorInterval").ToAInt();
         _blogMonitor.Start(monitorInterval, HandleBlogMonitorElapsedEvent);
     }
 }
예제 #2
0
 public SearchController(IPagingService pagingService,
                         IConfigurationManagerWrapper configurationManagerWrapper)
 {
     _pagingService = pagingService;
     _configurationManagerWrapper = configurationManagerWrapper;
     _pageSize = _configurationManagerWrapper.AppSetting("PageSize").ToAInt();
 }
        private EnvironmentSettings GetDevSettings()
        {
            string domain = _configurationManagerWrapper.AppSetting("DevDomain").ToAString();
            string jsonConfigDirectory  = _configurationManagerWrapper.AppSetting("DevJsonConfigDirectory").ToAString();
            string outputDirectory      = _configurationManagerWrapper.AppSetting("DevOutputDirectory").ToAString();
            string angularCliSrcDirtory = _configurationManagerWrapper.AppSetting("DevAngularCLISrctDirectory").ToAString();

            return(new EnvironmentSettings()
            {
                Domain = domain, JsonConfigDirectory = jsonConfigDirectory, OutputDirectory = outputDirectory, AngularCLISrcDirectory = angularCliSrcDirtory
            });
        }
예제 #4
0
 public ArchiveService(IConfigurationManagerWrapper configurationManagerWrapper)
 {
     _configurationManagerWrapper = configurationManagerWrapper;
     _archiveMonths = _configurationManagerWrapper.AppSetting("ArchiveMonths").ToAInt();
 }