impet
(impet)
April 23, 2021, 8:49am
1
I Have notices that the .Net client code generator does not produce async versions of methods that return Binary data type. (Begin…/End… methods are still generated).
My question is how to make an async call of such a method, which return a Binary result.
antonk
(antonk)
April 23, 2021, 9:38am
2
Hello
Unfortunately I cannot reproduce this behavior.
Could you send your app RODL and _Intf files generated to support@ ?
Thanks in advance
antonk
(antonk)
April 23, 2021, 11:14am
4
Removed RODL and _Intf uploads, just in case.
The ProductService.LoadProductPicture is defined as
Binary LoadProductPicture(int ProductId, bool Thumbnail, out int ThumbnailWidth);
.NET does not allow to create async methods (ones that return Task-based results) with out
or ref
parameters.
In other words, such method definition would not compile:
Task<Binary> LoadProductPicture(int ProductId, bool Thumbnail, out int ThumbnailWidth);
You need to somehow redefine this method (f.e. return a structure instead of a combination of Binary result and out integer parameter).
1 Like
impet
(impet)
April 23, 2021, 11:16am
5
Thanks a lot for your help!