Beispiel #1
0
        private void Connection_OnNewConnection(ClientModeConnectionHolder.Connection connection)
        {
            var dto = new ClientModeReadyToUseModel(connection, this);

            connection.Tag = dto;
            _clientModeReadyToUseConnections.Add(dto);
        }
Beispiel #2
0
 private void Connection_ConnectionDestroyed(object sender, ClientModeConnectionHolder.Connection e)
 {
     if (InvokeRequired)
     {
         Invoke((Action <ClientModeConnectionHolder.Connection>)Connection_OnConnectionDestroyed, e);
     }
     else
     {
         Connection_OnConnectionDestroyed(e);
     }
 }
Beispiel #3
0
 private void Connection_NewConnection(object sender, ClientModeConnectionHolder.Connection e)
 {
     if (InvokeRequired)
     {
         Invoke((Action <ClientModeConnectionHolder.Connection>)Connection_OnNewConnection, e);
     }
     else
     {
         Connection_OnNewConnection(e);
     }
 }
Beispiel #4
0
 private void ClientMode_TunnelCreated(object sender, ClientModeConnectionHolder.Connection e)
 {
     if (InvokeRequired)
     {
         BeginInvoke((Action <ClientModeConnectionHolder.Connection>)ClientMode_OnTunnelCreated, e);
     }
     else
     {
         ClientMode_OnTunnelCreated(e);
     }
 }
Beispiel #5
0
        private void Connection_OnConnectionDestroyed(ClientModeConnectionHolder.Connection connection)
        {
            var model = (ClientModeReadyToUseModel)connection.Tag;

            _clientModeReadyToUseConnections.Remove(model);
        }
Beispiel #6
0
        private void ClientMode_OnTunnelCreated(ClientModeConnectionHolder.Connection connection)
        {
            var dto = (ClientModeReadyToUseModel)connection.Tag;

            _clientModeReadyToUseConnections.Remove(dto);
        }