『LoG』☠ 𝓣 𝓐 𝓛 𝓔 𝓝 𝓣 ♚
❔ asynchronous coding
Hello, nice coding.
I have a synchronous packet filter project that I coded myself and I updated my project to .net 6.0 and I want to update it asynchronously. Ex:
public async Task<PacketResult> Handle(Session session, Packet packet)
{
if (Settings.ConnectionLimit> 0)
{
var count = SqlHelper.Count(session.Context.CharName);
if (count >= Settings.ConnectionLimit)
{
session.SendNotice(NoticeClass.Limit);
return PacketResult.Ignore;
}
}
return PacketResult.None;
}
You have many asynchronous methods similar to the above code and they don't have await or task run statements any problem? thank you for your feedback
31 replies