Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 public SignalEntry(Udbus.Core.SignalKey key, Udbus.Core.IHandleDbusSignal signalHandler)
     : this(key, signalHandler.HandleSignalMessage)
 {
 }
Ejemplo n.º 5
0
 public SignalEntry(Udbus.Core.SignalKey key, HandleSignalMessageDelegate signalHandler)
 {
     this.key           = key;
     this.signalHandler = signalHandler;
 }