Exemplo n.º 1
0
        /// <summary>
        /// Initializes the channel.
        /// </summary>
        /// <param name="channel"></param>
        protected void InitializeChannel(ITransportChannel channel)
        {
            m_channel             = channel;
            m_useTransportChannel = true;

            UaChannelBase uaChannel = channel as UaChannelBase;

            if (uaChannel != null)
            {
                m_useTransportChannel = uaChannel.m_uaBypassChannel != null || uaChannel.UseBinaryEncoding;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Intializes the object with a channel and a message context.
        /// </summary>
        /// <param name="channel">The channel.</param>
        public ClientBase(ITransportChannel channel)
        {
            if (channel == null)
            {
                throw new ArgumentNullException(nameof(channel));
            }

            m_channel             = channel;
            m_useTransportChannel = true;

            UaChannelBase uaChannel = channel as UaChannelBase;

            if (uaChannel != null)
            {
                m_useTransportChannel = uaChannel.m_uaBypassChannel != null || uaChannel.UseBinaryEncoding;
            }
        }