Closed ayfie-frank-gynnild closed 3 years ago
Hi,
Returning a void (like an untyped Task) is not supported at the moment, the Prise.Proxy library needs updating in order to fix this. Expect this to be fixed in the next release (.NET 5)
Thanks 👍
Hi @snowbirder ,
Please check out Prise 2.0.0, support for the Task return type was added (among other things).
Thanks @merken
When creating a plug-in contract using an async method that just returns a Task, I get this exception when trying to call the plug-in through Prise:
It's quite easy is to replicate:
On the host side, just call:
and you get the exception above.
If you change the return to
Task<string>
or something else, it seems to work fine.