示例#1
0
        /// <inheritdoc />
        protected override void OnInnerAdapterNewOutMessage(Message message)
        {
            if (!OutputChannel.IsOpened)
            {
                OutputChannel.Open();
            }

            OutputChannel.SendInMessage(message);
        }
示例#2
0
        private void AdapterOnNewOutMessage(Message message)
        {
            if (!OutputChannel.IsOpened)
            {
                OutputChannel.Open();
            }

            OutputChannel.SendInMessage(message);
        }
示例#3
0
        /// <summary>
        /// Send outgoing message.
        /// </summary>
        /// <param name="message">Message.</param>
        public void SendOutMessage(Message message)
        {
            if (!OutputChannel.IsOpened)
            {
                OutputChannel.Open();
            }

            OutputChannel.SendInMessage(message);
        }
示例#4
0
        void Output(OperationDescription od, object [] parameters)
        {
            if (OutputChannel.State != CommunicationState.Opened)
            {
                OutputChannel.Open();
            }

            ClientOperation op = runtime.Operations [od.Name];

            Send(CreateRequest(op, parameters), OperationTimeout);
        }