Async call methods returning Binary

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.

Hello

Unfortunately I cannot reproduce this behavior.

Could you send your app RODL and _Intf files generated to support@ ?

Thanks in advance

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

Thanks a lot for your help!