예제 #1
0
        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);
            }
        }
예제 #2
0
        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;
 }
예제 #4
0
 public SignalEntry(Udbus.Core.SignalKey key, Udbus.Core.IHandleDbusSignal signalHandler)
     : this(key, signalHandler.HandleSignalMessage)
 {
 }
예제 #5
0
 public SignalEntry(Udbus.Core.SignalKey key, HandleSignalMessageDelegate signalHandler)
 {
     this.key           = key;
     this.signalHandler = signalHandler;
 }