Last post May 21, 2020 06:52 AM by yij sun
May 17, 2020 04:47 PM|wavemaster|LINK
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!
May 18, 2020 09:13 AM|yogyogi|LINK
An approach to
threading might be useful in your case.
May 21, 2020 06:52 AM|yij sun|LINK
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: