[SOLVED] Async and Session problem/question (Wisej 2.0.13.0)

Answered
0
0

Hi all,

i’m having some trouble with async and session value. I need some async methods that i can wait, so at certain point i’m sure that methods are completed and all the changed are pushed to the client.

 

I attached a commented sample, i’m doing something wrong ?

 

Thanks for help, i appreciate it!

Attachment
  • You must to post comments
Best Answer
0
0

Hi Simone,

please find attached a reworked version of your code.
In general the following construct ensures that the code is run in context and the client is updated when the code finished:

Application.Update(this, () =>
{
}

We´ll investigate your code closer to see why the session is cleared.

Best regards
Frank

Attachment
  • You must to post comments
0
0

Hi Frank,

thanks for your sample!

I have apply your workaround to the main project and seems to work.

 

 

If you have any update, please let me know.

 

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.