Task RunServer() { return(Task.Run(() => { AsyncSocketListener.StartListener(this); })); }
public static void Main(string[] args) { Console.WriteLine("Server started"); Console.WriteLine("Press any key to continue....."); Console.ReadLine(); AsyncSocketListener.StartListener(); Console.ReadLine(); }