예제 #1
0
 public void Configure(Site site, InstallationConfiguration configuration)
 {
     foreach (var task in this)
     {
         task.ConfigureInstalledSite(site, configuration);
     }
 }
 public void PerformTasks(InstallationConfiguration configuration)
 {
     foreach (var task in this)
     {
         task.BeforeInstallation(configuration);
     }
 }
예제 #3
0
        public SiteDeployer(IServerManager serverManager, InstallationConfiguration installationConfiguration)
        {
            _serverManager             = serverManager;
            _installationConfiguration = installationConfiguration;

            _preInstall = new PreInstallationTaskList
            {
                new DeleteExistingSite(_serverManager),
            };

            _installation = new CreateSite(_serverManager);

            _configuration = new ConfigurationTaskList
            {
                new ConfigureAppPool(_serverManager),
                new ConfigureBindings(_serverManager),
                new ConfigureLogging(_serverManager),
                new ConfigureAdditionalDirectories(_serverManager)
            };
        }