Exemplo n.º 1
0
 public IISManager(string localSitesPath, string tempSitesPath, ISyncStatusRepository syncStatusRepository, ILoggerFactory loggerFactory, LoggerLevel logLevel)
 {
     _syncStatusRepository = syncStatusRepository;
     _localSitesPath = localSitesPath;
     _tempSitesPath = tempSitesPath;
     _logger = loggerFactory.Create(GetType(), logLevel);
 }
Exemplo n.º 2
0
 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();
        }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
        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;
 }
Exemplo n.º 8
0
 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;
 }
Exemplo n.º 10
0
 public SyncStatusService(ISyncStatusRepository syncStatusRepository)
 {
     _syncStatusRepository = syncStatusRepository;
 }