Ejemplo n.º 1
0
        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);
                        }
                    });
                }
            }
        }
Ejemplo n.º 2
0
        public override void DeployWebApplicationModel(ModelNode model)
        {
            foreach (var webAppUrl in WebApplicationUrls)
            {
                Trace.WriteLine(string.Format("[INF]    Running on web app: [{0}]", webAppUrl));

                for (var provisionGeneration = 0; provisionGeneration < ProvisionGenerationCount; provisionGeneration++)
                {
                    WithSSOMWebApplicationContext(webAppUrl, webApp =>
                    {
                        _provisionService.DeployModel(WebApplicationModelHost.FromWebApplication(webApp), model);
                        _validationService.DeployModel(WebApplicationModelHost.FromWebApplication(webApp), model);
                    });
                }
            }
        }
Ejemplo n.º 3
0
 public static void DeployWebApplicationModel(this SSOMProvisionService modelHost, SPWebApplication webApplication, ModelNode model)
 {
     modelHost.DeployModel(WebApplicationModelHost.FromWebApplication(webApplication), model);
 }