Answered by:
asynchronous code execution in Web Pages

Question
-
User379720387 posted
I have a listener that receives a lengthy json string (maybe more than 18,000 character) which it then parses and does a few inserts into the db.
At the same time I would like to keep processing other incoming json string that are more much shorter.
This like a perfect solution to do this asynchronous, however I do not know if this can be done with the frame work I am using which is Microsoft Web Pages.
Please point me in the right direction!
Sunday, May 17, 2020 4:47 PM
Answers
-
-
User1535942433 posted
Hi wavemaster,
Accroding to your description,as far as I think,you could use asynchronous methods.You could use the async keyword, which tells the compiler to generate callbacks for parts of the body and to automatically create a Task that is returned.And the await keyword was applied to the web service call.
More details,you could refer to below article:
Best regards,
Yijing Sun
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, May 21, 2020 6:52 AM
All replies
-
-
User1535942433 posted
Hi wavemaster,
Accroding to your description,as far as I think,you could use asynchronous methods.You could use the async keyword, which tells the compiler to generate callbacks for parts of the body and to automatically create a Task that is returned.And the await keyword was applied to the web service call.
More details,you could refer to below article:
Best regards,
Yijing Sun
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, May 21, 2020 6:52 AM