Пример #1
0
        public OperationExecuteResponse Execute(Dictionary <string, string> requestParameters = null)
        {
            ICustomOperation operation = CreateInstanceForOperation();

            this.SetInputParameters(operation, requestParameters);

            OperationResult result = operation.Execute();

            return(new OperationExecuteResponse()
            {
                Outputs = this.GetOutputParameters(operation),
                Result = result
            });
        }
Пример #2
0
        public OperationExecuteResponse Execute(Dictionary <string, string> requestParameters = null, bool useProxy = true)
        {
            ICustomOperation operation = null;

            if (useProxy)
            {
                operation = CreateProxyInstanceForOperation();
            }
            else
            {
                operation = CreateInstanceForOperation();
            }

            this.SetInputParameters(operation, requestParameters);

            OperationResult result = operation.Execute();

            return(new OperationExecuteResponse()
            {
                Outputs = this.GetOutputParameters(operation),
                Result = result
            });
        }