S
S
Sergey Kikhno2018-12-03 16:21:29
ASP.NET
Sergey Kikhno, 2018-12-03 16:21:29

Asynchronous request/response. What tools to use?

Good day. Another attempt to write a client-server in Asp.Net was a success. But, it was done according to Microsoft examples with the BeginConnect, BeginAccept, etc. methods. with the corresponding callbacks. There is also another better "as everyone says" method for implementing an asynchronous process - this is Async, Await.
I'm doing a normal client-server request/response.
The next question is "Which of the above should be used, and at what points (request / response)"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Yudakov, 2018-12-03
@AGlassOfWhiskey

If you use async / await - the code is much (!!!) simpler and shorter.
And the compiler itself will then remake this code into BeginConnect, BeginAccept, etc.
Those. these options will still work the same, and writing is easier through async/await.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question