private void OnStopping(OTcpListener listener) { var handler = this.Stopping; if (handler != null) { handler(EventArgs.Empty, listener); } }
private void ListenerOnStopping(EventArgs eventArgs, OTcpListener oTcpListener) { log.Info("Listener stopping, stopping client."); this.Close(); }
public OTcpClient(TcpClient client, OTcpListener listener) { this.log.InfoFormat("Created from TcpClient {0}",client.Client.RemoteEndPoint); Client = client; listener.Stopping += ListenerOnStopping; }
public OTcpClient(TcpClient client, OTcpListener listener) { this.log.InfoFormat("Created from TcpClient {0}", client.Client.RemoteEndPoint); Client = client; listener.Stopping += ListenerOnStopping; }