public void onSignal(Udbus.Core.UdbusMessagePair messageData) { Udbus.Core.SignalKey key = new Udbus.Core.SignalKey(messageData.Data.path, messageData.Data.interface_, messageData.Data.method); //Console.WriteLine("Whoop !"); //Console.WriteLine("Signal Registry..."); //foreach (Udbus.Core.SignalKey keyIter in this.signals.Keys) //{ // Console.WriteLine(keyIter.Key); //} //Console.WriteLine("Message key..."); //Console.WriteLine(key.Key); SignalEntry.HandleSignalMessageDelegate handler; if (this.signals.TryGetValue(key, out handler)) { handler(messageData); } }
public SignalEntry(Udbus.Core.SignalKey key, HandleSignalMessageDelegate signalHandler) { this.key = key; this.signalHandler = signalHandler; }
public SignalEntry(Udbus.Core.SignalKey key, Udbus.Core.IHandleDbusSignal signalHandler) : this(key, signalHandler.HandleSignalMessage) { }