Exemple #1
0
        /// <summary>
        /// Override.
        /// </summary>
        protected void SendResponding(TransportInfo inputMessageTransportInfo,
                                      TransportMessage message)
        {
            List <ArbiterClientId?> forwardingInfo = inputMessageTransportInfo.CreateRespondingClientList();

            DoSendAndReceiveForwarding(forwardingInfo, message, DefaultTimeOut, null);
        }
Exemple #2
0
        /// <summary>
        /// The "Responding" set of functions allows to easily send a new request to a location
        /// that has sent you a requestMessage, even if this location is remote (trough server-client nodes).
        /// </summary>
        protected TExpectedMessageClass SendAndReceiveResponding <TExpectedMessageClass>(TransportInfo inputMessageTransportInfo,
                                                                                         TransportMessage message, TimeSpan timeOut)
            where TExpectedMessageClass : TransportMessage
        {
            List <ArbiterClientId?> forwardingInfo = inputMessageTransportInfo.CreateRespondingClientList();

            return((TExpectedMessageClass)DoSendAndReceiveForwarding(forwardingInfo, message, timeOut, typeof(TExpectedMessageClass)));
        }