public static void EndService() { ReportProvider.End(); foreach (ReportProvider p in ReportProvider.All) { p.Close(); } }
public Client(TcpClient tcpClient, ReportProvider parent) { this.tcpClient = tcpClient; this.parent = parent; socket = tcpClient.Client; thread = new Thread(new ThreadStart(ThreadMain)); thread.Start(); }