private void OnReceive( Session sender, EventArgs e ) { Debug.WriteLine( String.Format( "{0} Receive {1}", DateTime.Now, IPEndPoint ) ); if ( null == Receive ) { return; } Receive( sender, e ); }
private void OnConnect( Session sender, EventArgs e ) { Debug.WriteLine( String.Format( "{0} Connect {1}", DateTime.Now, IPEndPoint ) ); if ( null == Connect ) { return; } Connect( sender, e ); }