Skip to content

Commit

Permalink
Support for List<string> with quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
ealsur committed Jul 28, 2016
1 parent fa741d5 commit b2c8bd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -134,7 +134,7 @@ public async Task<ITriggerData> BindAsync(object value, ValueBindingContext cont
var invokeString = string.Format("[{0}]", string.Join(",", output.Select(x => x.AsString).ToArray()));
if (_parameter.ParameterType.Equals(typeof(List<String>)))
{
invokeString = string.Format("[{0}]", string.Join(",", output.Select(x => string.Format("\"{0}\"",x.AsString)).ToArray()));
invokeString = string.Format("[{0}]", string.Join(",", output.Select(x => !x.AsString.StartsWith("\"")?string.Format("\"{0}\"",x.AsString):x.AsString).ToArray()));
}
//We read the AsString value, since it contains the JSON Serialized POCO object
var deserializedObject = JsonConvert.DeserializeObject(invokeString, _parameter.ParameterType);
Expand Down
@@ -1,5 +1,5 @@
{
"version": "1.0.8",
"version": "1.0.9",
"description": "Azure Webjobs SDK Extension for Triggering a Group of Messages",
"authors": [ "ealsur" ],
"frameworks": {
Expand Down

0 comments on commit b2c8bd8

Please sign in to comment.