protected override DictionaryInputToOutputMapResponse Handle(DictionaryInputToOutputMapRequest request) { var responseDictionary = new FlowValueDictionary <string>(); foreach (var inputKey in request.FlowInputs.Keys) { responseDictionary.Add(inputKey.Replace("Input", "Output"), request.FlowInputs[inputKey]); } return(new DictionaryInputToOutputMapResponse { FlowOutputs = responseDictionary }); }
protected override DictionarySubPropertyBindingsMappingResponse Handle(DictionarySubPropertyBindingsMappingRequest request) { var namedValues = new FlowValueDictionary <int>(); foreach (var inputKey in request.NamedFlowInputs.Keys) { namedValues.Add(inputKey.Replace("Input", "Output"), request.NamedFlowInputs[inputKey]); } var regexValues = new FlowValueDictionary <int>(); foreach (var inputKey in request.RegexFlowInputs.Keys) { regexValues.Add(inputKey.Replace("Input", "Output"), request.RegexFlowInputs[inputKey]); } var response = new DictionarySubPropertyBindingsMappingResponse { NamedFlowOutputs = namedValues, RegexFlowOutputs = regexValues }; return(response); }