Event argument class used to publish data received from a network connection
Inheritance: System.EventArgs
Exemplo n.º 1
0
 private void ConnectionDataAvailable( object sender, DataAvailableEventArgs e )
 {
     _parser.AppendData( e.Data );
 }
Exemplo n.º 2
0
        private void ServerDispatcherServerDataAvailable( object sender, DataAvailableEventArgs e )
        {
            _logger.Verbose("Data available from server dispatcher");

            try
            {
                if ( _connection != null )
                {
                    lock ( _connection )
                    {
                        _connection.SendData( e.Data );
                    }
                }
                else
                {
                    _logger.Info("Client connection closed. Ignoring data from server.");
                }
            }
            catch ( Exception ex )
            {
                _logger.Exception( "Unhandled exception processing server data", ex );
                Reset();
            }
        }
Exemplo n.º 3
0
 void _server_DataAvailable(object sender, DataAvailableEventArgs e)
 {
     ServiceLog.Logger.Verbose("HTTPS - Data available from the server");
     _client.SendData(e.Data);
 }
Exemplo n.º 4
0
 private void ConnectionDataAvailable( object sender, DataAvailableEventArgs e )
 {
     _logger.Info("Received data from client");
     _parser.AppendData(e.Data);
 }
Exemplo n.º 5
0
        private void ActiveServerDataAvailable( object sender, DataAvailableEventArgs e )
        {
            Logger.Verbose( "Data available from server" );

            EventHandler<DataAvailableEventArgs> ev = ServerDataAvailable;
            if ( ev != null )
            {
                ev( this, e );
            }
        }