internal void Start()
 {
     //Task mytask = Task.Run(() =>
     //{
     p = new DeviceProviders.AllJoynProvider();
     p.ServiceJoined  += ServiceJoined;
     p.ServiceDropped += ServiceDropped;
     p.Start();
     //});
 }
Esempio n. 2
0
        public MainPage()
        {
            this.InitializeComponent();
            DeviceProviders.AllJoynProvider p = new DeviceProviders.AllJoynProvider();
            p.ServiceJoined  += ServiceJoined;
            p.ServiceDropped += ServiceDropped;
            p.Start();

            //var bus = new BusAttachment("ServiceTest", true);
        }
 public AllJoynNotificationReceiver(DeviceProviders.AllJoynProvider provider = null)
 {
     DeviceProviders.AllJoynProvider Config = provider ?? new AllJoynProvider();
     Config.ServiceJoined += Config_ServiceJoined;
     Config.Start();
 }