Small application to to demonstrate the behavior of dapr and and the dotnet-sdk during method invocation . Using different variants the following query is send to the CalleeController.
?name=test&name=test1&name=test3
Expected result:
{
"receivedNames": [
"test",
"test2",
"test3"
]
}
The caller calls the calle using the Dapr method invocation.
curl --location --request POST 'http://localhost:5000/api/Caller/dapr-method-invocation
Actual resposne:
{
"receivedNames": [
"test"
]
}
The caller calls the callee using the HTTP Client. Dapr isn't involved.
curl --location --request POST 'http://localhost:5000/api/Caller/http-client'
Actual result:
{
"receivedNames": [
"test",
"test2",
"test3"
]
}
The caller calls the callee using the HTTP Client calling the dapr method invocation endpoint.
curl --location --request POST 'http://localhost:5000/api/Caller/http-client-dapr'
Actual response:
{
"receivedNames": [
"test"
]
}