예제 #1
0
 public override void OnOpened(Connection connection)
 {
     if (connection is JettyHttpConnection)
     {
         _connectionTracker.add(( JettyHttpConnection )connection);
     }
 }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldAllowAddingOfConnections()
        internal virtual void ShouldAllowAddingOfConnections()
        {
            _tracker.add(_connection1);
            _tracker.add(_connection2);
            _tracker.add(_connection3);

            assertThat(_tracker.activeConnections(), containsInAnyOrder(_connection1, _connection2, _connection3));
        }