Beispiel #1
0
        public virtual Stream Execute(CommandContext commandContext)
        {
            var decisionRequirementsDefinition =
                new GetDeploymentDecisionRequirementsDefinitionCmd(DecisionRequirementsDefinitionId).Execute(
                    commandContext);

            var deploymentId = decisionRequirementsDefinition.DeploymentId;
            var resourceName = decisionRequirementsDefinition.ResourceName;

            return
                (commandContext.RunWithoutAuthorization(() => new GetDeploymentResourceCmd(deploymentId, resourceName).Execute(commandContext)));
        }
        public virtual Stream Execute(CommandContext commandContext)
        {
            var decisionRequirementsDefinition =
                new GetDeploymentDecisionRequirementsDefinitionCmd(DecisionRequirementsDefinitionId).Execute(
                    commandContext);

            var deploymentId = decisionRequirementsDefinition.DeploymentId;
            var resourceName = decisionRequirementsDefinition.DiagramResourceName;

            if (!ReferenceEquals(resourceName, null))
            {
                return
                    (commandContext.RunWithoutAuthorization(() => new GetDeploymentResourceCmd(deploymentId, resourceName).Execute(commandContext)));
            }
            return(null);
        }