// Invoke the ReceivedMessage event protected virtual void OnReceivedMessage(OscMessageEventArgs e) { if (ReceivedMessage != null) { ReceivedMessage(this, e); } }
void oscReceiver_ReceivedMessage(object sender, OscMessageEventArgs e) { if (topic == null || e.Message.Address.StartsWith(topic)) { T packet = packetConverter.FromOscBundle(new OscBundle(OscBundle.TIMESTAMP_NOW, e.Message), topic); if (packet != null) { OnReceivedPacket(packet); } } }