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 }); }
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 }); }