Beispiel #1
0
 private void OnRemoteEvent(PacketHeader packetHeader, Connection connection, NetworkEvent incomingObject)
 {
     RemoteEventReceived?.Invoke(this, incomingObject.EventKey);
 }
Beispiel #2
0
 private void OnConnectionClosed(Connection connection)
 {
     vaProxy.WriteToLog($"Connection Closed {connection?.ConnectionInfo?.RemoteEndPoint}", "red");
     RemoteEventReceived?.Invoke(this, "SN_CONNECTION_CLOSED");
     Connection = null;
 }