public override void DeployWebApplicationModel(ModelNode model) { if (!WebApplicationUrls.Any()) { throw new SPMeta2Exception("WebApplicationUrls is empty"); } foreach (var webAppUrl in WebApplicationUrls) { ContainerTraceUtils.WriteLine(string.Format("[INF] Running on web app: [{0}]", webAppUrl)); for (var provisionGeneration = 0; provisionGeneration < ProvisionGenerationCount; provisionGeneration++) { WithSSOMWebApplicationContext(webAppUrl, webApp => { if (EnableDefinitionProvision) { _provisionService.DeployModel(WebApplicationModelHost.FromWebApplication(webApp), model); } if (EnableDefinitionValidation) { _validationService.DeployModel(WebApplicationModelHost.FromWebApplication(webApp), model); } }); } } }
private void LoadEnvironmentConfig() { WebApplicationUrls.Clear(); WebApplicationUrls.AddRange(RunnerEnvironmentUtils.GetEnvironmentVariables(EnvironmentConsts.SSOM_WebApplicationUrls)); SiteUrls.Clear(); SiteUrls.AddRange(RunnerEnvironmentUtils.GetEnvironmentVariables(EnvironmentConsts.SSOM_SiteUrls)); WebUrls.Clear(); WebUrls.AddRange(RunnerEnvironmentUtils.GetEnvironmentVariables(EnvironmentConsts.SSOM_WebUrls)); }