ningyougang commented on code in PR #5311:
URL: https://github.com/apache/openwhisk/pull/5311#discussion_r948624141


##########
docs/actions-dotnet.md:
##########
@@ -79,6 +79,47 @@ cd out
 zip -r -0 helloDotNet.zip *
 ```
 
+For the return result, not only support `dictionary` but also support `array`
+
+So a very simple `hello array` function would be:

Review Comment:
   Updated accordingly



##########
docs/actions-dotnet.md:
##########
@@ -79,6 +79,47 @@ cd out
 zip -r -0 helloDotNet.zip *
 ```
 
+For the return result, not only support `dictionary` but also support `array`
+
+So a very simple `hello array` function would be:
+
+```csharp
+using System;
+using Newtonsoft.Json.Linq;
+namespace Apache.OpenWhisk.Tests.Dotnet
+{
+    public class HelloArray
+    {
+        public JArray Main(JObject args)
+        {
+            JArray jarray = new JArray();
+            jarray.Add("a");
+            jarray.Add("b");
+            return (jarray);
+        }
+    }
+}
+```
+
+And support array result for sequence action as well, the first action's array 
result can be used as next action's input parameter.
+
+So the function can be:

Review Comment:
   Updated accordingly



##########
docs/actions-php.md:
##########
@@ -47,6 +47,32 @@ function main(array $args) : array
 }
 ```
 
+For the return result, not only support `dictionary` but also support `array`
+
+So a very simple `hello array` function would be:

Review Comment:
   Updated accordingly



##########
docs/actions-python.md:
##########
@@ -33,7 +33,23 @@ def main(args):
     print(greeting)
     return {"greeting": greeting}
 ```
+For the return result, not only support `dictionary` but also support `array`
 
+So a very simple `hello array` function would be:

Review Comment:
   Updated accordingly



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to