예제 #1
0
 private void OnStopping(OTcpListener listener)
 {
     var handler = this.Stopping;
     if (handler != null)
     {
         handler(EventArgs.Empty, listener);
     }
 }
예제 #2
0
        private void OnStopping(OTcpListener listener)
        {
            var handler = this.Stopping;

            if (handler != null)
            {
                handler(EventArgs.Empty, listener);
            }
        }
예제 #3
0
파일: OTcpClient.cs 프로젝트: Gondulf/OCTGN
 private void ListenerOnStopping(EventArgs eventArgs, OTcpListener oTcpListener)
 {
     log.Info("Listener stopping, stopping client.");
     this.Close();
 }
예제 #4
0
파일: OTcpClient.cs 프로젝트: Gondulf/OCTGN
 public OTcpClient(TcpClient client, OTcpListener listener)
 {
     this.log.InfoFormat("Created from TcpClient {0}",client.Client.RemoteEndPoint);
     Client = client;
     listener.Stopping += ListenerOnStopping;
 }
예제 #5
0
 private void ListenerOnStopping(EventArgs eventArgs, OTcpListener oTcpListener)
 {
     log.Info("Listener stopping, stopping client.");
     this.Close();
 }
예제 #6
0
 public OTcpClient(TcpClient client, OTcpListener listener)
 {
     this.log.InfoFormat("Created from TcpClient {0}", client.Client.RemoteEndPoint);
     Client             = client;
     listener.Stopping += ListenerOnStopping;
 }