© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
30 replies
『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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Asynchronous TCP-programming
C#CC# / help
3y ago
✅ Confused about Asynchronous Programming
C#CC# / help
3y ago
❔ Coding Project
C#CC# / help
3y ago