Esempio n. 1
0
        private void Form1_Closed(object sender, EventArgs e)
        {
            iLibrary.Close();

            iLibrary.Stop();
            iSsdpListener.Stop();
            iEventServer.Stop();
        }
Esempio n. 2
0
        public Device Find(IPAddress aInterface, int aTimeout) // in milliseconds
        {
            Trace.WriteLine(Trace.kTopology, "DeviceFinder Find: " + iUglyName);

            iListener.Start(aInterface);
            iDeviceList.Start(aInterface);

            iSemaphore.WaitOne(aTimeout, false);

            Trace.WriteLine(Trace.kTopology, "DeviceFinder Found: " + iUglyName);

            iDeviceList.Stop();
            iListener.Stop();

            if (iFound)
            {
                return(iDevice);
            }

            throw (new DeviceFinderException());
        }
Esempio n. 3
0
 public void Close()
 {
     iListener.Stop();
 }
Esempio n. 4
0
 public void Stop()
 {
     iHouse.Stop();
     iListenerNotify.Stop();
     iEventServer.Stop();
 }
Esempio n. 5
0
 void IStack.Stop()
 {
     iDeviceListProduct.Stop();
     iListenerNotify.Stop();
 }
Esempio n. 6
0
 private void Form1_FormClosed(object sender, EventArgs e)
 {
     iEventServer.Stop();
     iListenerNotify.Stop();
     iModelLibrary.Stop();
 }