private void InitializeNotification()
        {
            AllJoynBusAttachment bus = new AllJoynBusAttachment();
            bus.AboutData.DefaultDescription = "AllJoyn Device Simulator";
            bus.AboutData.ModelNumber = "Notification Consumer";

            org.alljoyn.Notification.NotificationWatcher watcher = new org.alljoyn.Notification.NotificationWatcher(bus);
            watcher.Start();
            watcher.Added += Watcher_Added;
        }
예제 #2
0
        private void InitializeNotification()
        {
            AllJoynBusAttachment bus = new AllJoynBusAttachment();

            bus.AboutData.DefaultDescription = "AllJoyn Device Simulator";
            bus.AboutData.ModelNumber        = "Notification Consumer";

            org.alljoyn.Notification.NotificationWatcher watcher = new org.alljoyn.Notification.NotificationWatcher(bus);
            watcher.Start();
            watcher.Added += Watcher_Added;
        }
예제 #3
0
        private async void Watcher_Added(org.alljoyn.Notification.NotificationWatcher sender, AllJoynServiceInfo args)
        {
            var consumer = await org.alljoyn.Notification.NotificationConsumer.JoinSessionAsync(args, sender);

            consumer.Consumer.Signals.NotifyReceived += Signals_NotifyReceived;
        }