static void Run() { Server _localServer = new Server(); _localServer.InitServer(_serverEvent); Thread serverRun = new Thread(()=> _localServer.Start()); serverRun.Start(); }
/// <summary> /// The main method starting the thread for the /// server to run at and instantiating and starting /// an instance of the Server class. /// </summary> static void Main() { var server = new Server(); server.Start(); }