Opc.Ua.ClientBase.ClientBase C# (CSharp) Method

ClientBase() public method

Intializes the object with a channel and a message context.
public ClientBase ( ITransportChannel channel ) : System
channel ITransportChannel The channel.
return System
        public ClientBase(ITransportChannel channel)
        {
            if (channel == null) throw new ArgumentNullException("channel");
            
            m_channel = channel;
            m_useTransportChannel = true;

            WcfChannelBase wcfChannel = channel as WcfChannelBase;

            if (wcfChannel != null)
            {
                m_useTransportChannel = wcfChannel.m_wcfBypassChannel != null || wcfChannel.UseBinaryEncoding;
            }
        }
        #endregion