Dispose() public method

public Dispose ( ) : void
return void
Ejemplo n.º 1
0
        public static void Main(string[] args) {
            var server = new SocketServer(IPAddress.Parse(Ip), Port);
            server.Start();

            var input = string.Empty;
            while (input.ToLower() != "q") {
                Console.WriteLine("Enter 'Q' or 'q' to exit.");
                input = Console.ReadLine().ToLower();
            }
            server.Stop();
            server.Dispose();
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            var server = new SocketServer(IPAddress.Parse(Ip), Port);

            server.Start();

            var input = string.Empty;

            while (input.ToLower() != "q")
            {
                Console.WriteLine("Enter 'Q' or 'q' to exit.");
                input = Console.ReadLine().ToLower();
            }
            server.Stop();
            server.Dispose();
        }
Ejemplo n.º 3
0
 public void Stop()
 {
     Logger.Log(this, "Stopped");
     SocketServer.Dispose();
     Active = false;
 }