Exemple #1
0
        public void DeploySPMetaModel(WebModelNode model)
        {
            BeforeDeployModel(x =>
            {
                PropertyBagValue incrementalProvisionModelIdProperty = GetIncrementalProvisionModelProperies(model.PropertyBag);

                Logger("Provisioning preparing model");

                WebModelNode preparingModel = GetContainersModel(model);

                if (incrementalProvisionModelIdProperty != null)
                {
                    preparingModel.SetIncrementalProvisionModelId("Preparing: " + incrementalProvisionModelIdProperty.Value);
                }

                x.DeployModel(SPMeta2.CSOM.ModelHosts.WebModelHost.FromClientContext(_ctx), preparingModel);

                Logger("");
                Logger("Provisioning main model");

                x.DeployModel(SPMeta2.CSOM.ModelHosts.WebModelHost.FromClientContext(_ctx), model);
            });
        }