private void HandleRawWhoComplete(object sender, EventArgs ev) { Debug.Print("Server.HandleRawWhoComplete"); _protocolHandler.RestoreHandlers( ); OnWhoComplete(((WhoHandler)sender).Target, _whoResponses); _whoResponseParser = null; _whoResponses = null; }
// WhoHandler private void HandleRawWhoComplete(object sender, EventArgs ev) { Debug.Print("Server.HandleRawWhoComplete"); _protocolHandler.EndCapture("Server.HandleRplWhoReply running WhoHandler"); OnWhoComplete(((WhoHandler)sender).Target, _whoResponses); _whoResponseParser = null; _whoResponses = null; }
private void HandleRawWhoMessage(object sender, MessageEventArgs ev) { if (null == _whoResponseParser) { _whoResponseParser = new WhoResponseParser { ProtocolHandler = _protocolHandler, Server = this, }; } if (null == _whoResponses) { _whoResponses = new Collection <WhoResponse>( ); } if (ev.Message.Verb.Equals("352")) { try { _whoResponses.Add(_whoResponseParser.ParseResponse(ev.Message)); } catch (Exception e) { Debug.Print("Server.HandleRawWhoMessage: caught exception trying to parse 352 message:\n{0}", e); } } }
private void HandleRawWhoMessage( object sender, MessageEventArgs ev ) { if ( null == _whoResponseParser ) { _whoResponseParser = new WhoResponseParser { ProtocolHandler = _protocolHandler, Server = this, }; } if ( null == _whoResponses ) { _whoResponses = new Collection<WhoResponse>( ); } if ( ev.Message.Verb.Equals( "352" ) ) { try { _whoResponses.Add( _whoResponseParser.ParseResponse( ev.Message ) ); } catch ( Exception e ) { Debug.Print( "Server.HandleRawWhoMessage: caught exception trying to parse 352 message:\n{0}", e ); } } }
// WhoHandler private void HandleRawWhoComplete( object sender, EventArgs ev ) { Debug.Print( "Server.HandleRawWhoComplete" ); _protocolHandler.EndCapture( "Server.HandleRplWhoReply running WhoHandler" ); OnWhoComplete( ( (WhoHandler) sender ).Target, _whoResponses ); _whoResponseParser = null; _whoResponses = null; }
private void HandleRawWhoComplete( object sender, EventArgs ev ) { Debug.Print( "Server.HandleRawWhoComplete" ); _protocolHandler.RestoreHandlers( ); OnWhoComplete( ( (WhoHandler) sender ).Target, _whoResponses ); _whoResponseParser = null; _whoResponses = null; }