Пример #1
0
        private void Sender_Transmit(ManualChannelListener listener, TransmissionPayload incoming)
        {
            var payload = incoming.Clone(SignalCompletion, true);

            payload.TraceWrite("Cloned", "ManualCommunicationBridgeAgent/PayloadCopy");

            mPayloadsActive.AddOrUpdate(payload.Id, new TransmissionPayloadHolder(payload, listener), (g, p) => p);

            OnTransmitInvoke(listener, payload);

            try
            {
                listener.Inject(payload);
            }
            catch (Exception ex)
            {
                listener.Collector?.LogException("Unhandled exception in the BridgeAgent", ex);
            }
        }