/// <summary>
        /// This is a sample Micr Framework Dpws client application. This console application is designed
        /// to excercise the features of the MFWsdStack client classes. This application creates an instance of
        /// a SimpleServiceClient class. This class is derived DpwsClientServices. When an instance of this class
        /// is created the MFWsdStack services start automatically. Unlike the Device services that require an actual
        /// Start command. This sample app will wait for a hello discovery request. Wen received it will probe for
        /// services that implement a SimpleService type. Te Dpws Interop sample service implements this type. For each
        /// probe match received (up to 10) a resolve request is sent to endpoints obtained from the resolve matches.
        /// For each resolve match the app sends a Get request to the device hosting the service. The app then uses the
        /// metadata in the get response to call 1way, 2way methods on the service and then subscribes to the SimpleEvent
        /// and ItegerEvent hosted by the interop service. When the client receives each event from the service it sends
        /// an Unsubscribe for each event and waits for another hello. The application processes one hello at a time.
        /// resolve match
        /// </summary>
        public static void Main()
        {
            // Turn console messages on
            Console.Verbose = true;

            System.Ext.Console.Write("Application started...");

            // Wait for DHCP (on LWIP devices)
            while (true)
            {
                IPAddress ip = IPAddress.GetDefaultLocalAddress();

                if (ip != IPAddress.Any)
                {
                    break;
                }

                Thread.Sleep(1000);
            }

            // Create a test application thread
            TestApplication testApp       = new TestApplication();
            Thread          testAppThread = new Thread(new ThreadStart(testApp.Run));

            testAppThread.Start();
        }
        /// <summary>
        /// This is a sample Micr Framework Dpws client application. This console application is designed
        /// to excercise the features of the MFWsdStack client classes. This application creates an instance of
        /// a SimpleServiceClient class. This class is derived DpwsClientServices. When an instance of this class
        /// is created the MFWsdStack services start automatically. Unlike the Device services that require an actual
        /// Start command. This sample app will wait for a hello discovery request. Wen received it will probe for
        /// services that implement a SimpleService type. Te Dpws Interop sample service implements this type. For each
        /// probe match received (up to 10) a resolve request is sent to endpoints obtained from the resolve matches.
        /// For each resolve match the app sends a Get request to the device hosting the service. The app then uses the
        /// metadata in the get response to call 1way, 2way methods on the service and then subscribes to the SimpleEvent
        /// and ItegerEvent hosted by the interop service. When the client receives each event from the service it sends
        /// an Unsubscribe for each event and waits for another hello. The application processes one hello at a time.
        /// resolve match 
        /// </summary>
        public static void Main()
        {
            // Turn console messages on
            Console.Verbose = true;

            System.Ext.Console.Write("Application started...");

            // Create a test application thread
            TestApplication testApp = new TestApplication();
            Thread testAppThread = new Thread(new ThreadStart(testApp.Run));
            testAppThread.Start();
        }
        /// <summary>
        /// This is a sample Micr Framework Dpws client application. This console application is designed
        /// to excercise the features of the MFWsdStack client classes. This application creates an instance of
        /// a SimpleServiceClient class. This class is derived DpwsClientServices. When an instance of this class
        /// is created the MFWsdStack services start automatically. Unlike the Device services that require an actual
        /// Start command. This sample app will wait for a hello discovery request. Wen received it will probe for
        /// services that implement a SimpleService type. Te Dpws Interop sample service implements this type. For each
        /// probe match received (up to 10) a resolve request is sent to endpoints obtained from the resolve matches.
        /// For each resolve match the app sends a Get request to the device hosting the service. The app then uses the
        /// metadata in the get response to call 1way, 2way methods on the service and then subscribes to the SimpleEvent
        /// and ItegerEvent hosted by the interop service. When the client receives each event from the service it sends
        /// an Unsubscribe for each event and waits for another hello. The application processes one hello at a time.
        /// resolve match
        /// </summary>
        public static void Main()
        {
            // Turn console messages on
            Console.Verbose = true;

            System.Ext.Console.Write("Application started...");

            // Create a test application thread
            TestApplication testApp       = new TestApplication();
            Thread          testAppThread = new Thread(new ThreadStart(testApp.Run));

            testAppThread.Start();
        }
        /// <summary>
        /// This is a sample Micr Framework Dpws client application. This console application is designed
        /// to excercise the features of the MFWsdStack client classes. This application creates an instance of
        /// a SimpleServiceClient class. This class is derived DpwsClientServices. When an instance of this class
        /// is created the MFWsdStack services start automatically. Unlike the Device services that require an actual
        /// Start command. This sample app will wait for a hello discovery request. Wen received it will probe for
        /// services that implement a SimpleService type. Te Dpws Interop sample service implements this type. For each
        /// probe match received (up to 10) a resolve request is sent to endpoints obtained from the resolve matches.
        /// For each resolve match the app sends a Get request to the device hosting the service. The app then uses the
        /// metadata in the get response to call 1way, 2way methods on the service and then subscribes to the SimpleEvent
        /// and ItegerEvent hosted by the interop service. When the client receives each event from the service it sends
        /// an Unsubscribe for each event and waits for another hello. The application processes one hello at a time.
        /// resolve match 
        /// </summary>
        public static void Main()
        {
            // Turn console messages on
            Console.Verbose = true;

            System.Ext.Console.Write("Application started...");

            // Wait for DHCP (on LWIP devices)
            while (true)
            {
                IPAddress ip = IPAddress.GetDefaultLocalAddress();

                if (ip != IPAddress.Any) break;

                Thread.Sleep(1000);
            }

            // Create a test application thread
            TestApplication testApp = new TestApplication();
            Thread testAppThread = new Thread(new ThreadStart(testApp.Run));
            testAppThread.Start();
        }