public static void Start() { if (_configurationManagerWrapper.AppSetting("BlogMonitorEnabled").ToABool()) { int monitorInterval = _configurationManagerWrapper.AppSetting("BlogMonitorInterval").ToAInt(); _blogMonitor.Start(monitorInterval, HandleBlogMonitorElapsedEvent); } }
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 }); }
public ArchiveService(IConfigurationManagerWrapper configurationManagerWrapper) { _configurationManagerWrapper = configurationManagerWrapper; _archiveMonths = _configurationManagerWrapper.AppSetting("ArchiveMonths").ToAInt(); }