Example #1
0
        public DpwsDiscoClientService(DpwsClient client)
        {
            m_client = client;

            // Add discovery Hello ServiceOperations
            m_discoCallbacks = new WsServiceOperations();
            m_discoCallbacks.Add(new WsServiceOperation(WsWellKnownUri.WsdNamespaceUri, "Hello"));
            m_discoCallbacks.Add(new WsServiceOperation(WsWellKnownUri.WsdNamespaceUri, "Bye"));
        }
        //--//

        public DpwsDiscoClientService(DpwsClient client, ProtocolVersion version)
        {
            m_client = client;
            m_threadLock = new object();
            m_version = version;

            m_messageCheck = new WsMessageCheck();

            // Add discovery Hello ServiceOperations
            m_discoCallbacks = new WsServiceOperations();
            m_discoCallbacks.Add(new WsServiceOperation(m_version.DiscoveryNamespace, "Hello"));
            m_discoCallbacks.Add(new WsServiceOperation(m_version.DiscoveryNamespace, "Bye"));
        }