private string LoadTemplate(ref IDomain workingInstance) { // Template does not have any ContentArguments, That's why it copies it's parent Arguments if (this.Parent != null) { this.ContentArguments.Replace(this.Parent.ContentArguments); } Domain deployment = null; DeploymentAccessRequested?.Invoke(ref workingInstance, ref deployment); if (deployment == null) { throw new System.Exception("Domain Deployment access is failed!"); } return(deployment.ProvideTemplateContent(this.ControlID)); }
public void RequestDeploymentAccess(ref IDomain instance, out Deployment.Domain deployment) { deployment = null; DeploymentAccessRequested?.Invoke(ref instance, out deployment); }