Scordo / TS3QueryLib.Net

This library allows you to query team speak 3 servers using the query port. All queries are implemented type safe and the library is written to work with .Net 3.5 SP1 or higher inluding support for silverlight 3.0 or higher and windows phone 7.1.
BSD 3-Clause "New" or "Revised" License
51 stars 15 forks source link

Use async/await pattern #13

Closed maitredede closed 7 years ago

maitredede commented 9 years ago

Hi,

Do you think you can make your lib use Tasks, to use the async/await pattern, and use if through all layers ? I would like to use your wonderfull lib in a framework 4.5 application that heavily relies on tasks scheduling... I think you can either extend socket : http://blogs.msdn.com/b/pfxteam/archive/2011/12/15/10248293.aspx Or use the TcpClient/NetworkStream that already hasasync task methods : https://msdn.microsoft.com/fr-fr/library/system.net.sockets.tcpclient(v=vs.110).aspx

Thanks :)

Scordo commented 7 years ago

Hi Maitre,

it is not possible for the current library. But I did it for the ".Net Core" version of the library.

Regards, Scordo