Example and explanation for the new features

0
0

Hello,

Where can I find the example and explanation for new features released

WJ-9077 New Feature Add awaitable Form.ShowDialogAsync() for modal dialogs. Complete
WJ-9076 New Feature Add Application and Control awaitable CallAsync and EvalAsync + Call(callback) and Eval(callback). Complete
WJ-9075 New Feature Add new Wisej specific SynchronizationContext to support async/await programing. Complete

 

  • You must to post comments
1
0

Hi,

The feature

  • WJ-9075 Add new Wisej specific SynchronizationContext to support async/await programing.

is an enabler for the other features: it just provides support for async/await programing.

In a nutshell, these features mean you can call a JavaScript function that runs on the browser and get the server side to continue execution when the result arrives. You can get the result using either a callback or async/await programing. It’s your choice.

Before this change, your JavaScript code had to implement the callback by itself, by calling a server side [WebMethod] to return the result. Now the JavaScipt function just has to return 123; and 123  is received on the server side, on the callback method or as an await result.

Using async/await programing isn’t very common in WinForms and it can be used in very different situations.

An example is on the making to show how to use both features.

 

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.