public IISManager(string localSitesPath, string tempSitesPath, ISyncStatusRepository syncStatusRepository, ILoggerFactory loggerFactory, LoggerLevel logLevel) { _syncStatusRepository = syncStatusRepository; _localSitesPath = localSitesPath; _tempSitesPath = tempSitesPath; _logger = loggerFactory.Create(GetType(), logLevel); }
public SyncService(IWebSiteRepository sitesRepository, ICertificateRepository certificateRepository, ISyncStatusRepository syncStatusRepository, CloudStorageAccount storageAccount, string localSitesPath, string localTempPath, IEnumerable<string> directoriesToExclude) { this.sitesRepository = sitesRepository; this.certificateRepository = certificateRepository; this.syncStatusRepository = syncStatusRepository; this.localSitesPath = localSitesPath; this.localTempPath = localTempPath; this.directoriesToExclude = directoriesToExclude; this.entries = new Dictionary<string, FileEntry>(); this.siteDeployTimes = new Dictionary<string, DateTime>(); var sitesContainerName = RoleEnvironment.GetConfigurationSettingValue("SitesContainerName").ToLowerInvariant(); this.container = storageAccount.CreateCloudBlobClient().GetContainerReference(sitesContainerName); this.container.CreateIfNotExist(); }
public SyncService(IWebSiteRepository sitesRepository, ISyncStatusRepository syncStatusRepository, CloudStorageAccount storageAccount, string localSitesPath, string localTempPath, IEnumerable<string> directoriesToExclude, IEnumerable<string> sitesToExclude, Func<bool> syncEnabled, IISManager iisManager, ILoggerFactory loggerFactory, LoggerLevel logLevel) { _sitesRepository = sitesRepository; _syncStatusRepository = syncStatusRepository; _localSitesPath = localSitesPath; _localTempPath = localTempPath; _directoriesToExclude = directoriesToExclude; _sitesToExclude = sitesToExclude; _syncEnabled = syncEnabled; _iisManager = iisManager; _entries = new Dictionary<string, FileEntry>(); _siteDeployTimes = new Dictionary<string, DateTime>(); _logger = loggerFactory.Create(GetType(), logLevel); var sitesContainerName = AzureRoleEnvironment.GetConfigurationSettingValue(Constants.WebDeployPackagesBlobContainerKey).ToLowerInvariant(); _container = storageAccount.CreateCloudBlobClient().GetContainerReference(sitesContainerName); _container.CreateIfNotExist(); }
public SyncService(IWebSiteRepository sitesRepository, ISyncStatusRepository syncStatusRepository, CloudStorageAccount storageAccount, string localSitesPath, string localTempPath, IEnumerable <string> directoriesToExclude, IEnumerable <string> sitesToExclude, Func <bool> syncEnabled, IISManager iisManager, ILoggerFactory loggerFactory, LoggerLevel logLevel) { _sitesRepository = sitesRepository; _syncStatusRepository = syncStatusRepository; _localSitesPath = localSitesPath; _localTempPath = localTempPath; _directoriesToExclude = directoriesToExclude; _sitesToExclude = sitesToExclude; _syncEnabled = syncEnabled; _iisManager = iisManager; _entries = new Dictionary <string, FileEntry>(); _siteDeployTimes = new Dictionary <string, DateTime>(); _logger = loggerFactory.Create(GetType(), logLevel); var sitesContainerName = AzureRoleEnvironment.GetConfigurationSettingValue(Constants.WebDeployPackagesBlobContainerKey).ToLowerInvariant(); _container = storageAccount.CreateCloudBlobClient().GetContainerReference(sitesContainerName); _container.CreateIfNotExist(); }
public SyncController(ISyncStatusRepository syncStatusRepository) { this.syncStatusRepository = syncStatusRepository; }
public WebSiteController(IWebSiteRepository webSiteRepository, ISyncStatusRepository syncStatusRepository) { _webSiteRepository = webSiteRepository; _syncStatusRepository = syncStatusRepository; }
public IISManager(string localSitesPath, string tempSitesPath, ISyncStatusRepository syncStatusRepository) { this.syncStatusRepository = syncStatusRepository; this.localSitesPath = localSitesPath; this.tempSitesPath = tempSitesPath; }
public SyncStatusService(ISyncStatusRepository syncStatusRepository) { _syncStatusRepository = syncStatusRepository; }