NetCoreServer
NetCoreServer copied to clipboard
TPL with NetCoreServer
From the looks of it all variations of On*()
methods like OnReceived
, OnSent
etc are synchronous method. Any suggestions on how can I use async/await to do labor disk/network tasks?
Basically, does NetCoreServer support TPL?
Seems like TPL support in System.Net.Sockets namespace is coming in .NET 7 (i.e. ReceiveAsync). @chronoxor Any plans on upgrading NetCoreServer lib?
P.S. I'll be glad to help/contribute with an upgrade.
Upgrading to TPL should be done very carefully with benchmarking the performance. I'll look into it after .NET 7 official release. This release is very welcome because of supporting TLS 1.3 for MacOS!
@chronoxor I noticed that project got the .NET 7 update. Were you able to look into TPL usage? Did any performance benchmarks?
You can try to use it right now accessing connected socked using public Socket Socket
property and call its ReceiveAsync() method.
Thanks, I will definitely try it out, just wanted to check if you have already done some evaluation/benchmarking. Any work in progress on TPL integration?
Anyone did an investigation on this post .net 7 ?