예제 #1
0
        /// <summary>
        /// Creates an instance of the Subscription manager class.
        /// </summary>
        /// <remarks>
        /// The device manages an instance of this class on behalf of the device. A device developer
        /// must use the static Device.SubScriptionMgr.FireEvent method to fire events from an event
        /// source.
        /// </remarks>
        public DpwsWseSubscriptionMgr(Binding binding, ProtocolVersion version)
        {
            m_binding = binding.Clone();
            m_version = version;

            m_reqChannel = binding.CreateClientChannel(new ClientBindingContext(version));
        }