Beispiel #1
0
        public async Task <IMessageExchange> GetMessageExchanger(IMessageExchangeParameters messageExchangeParameters, IPod pod,
                                                                 IMessageProgress messageProgress, CancellationToken ct)
        {
            if (RileyLinkInstance == null)
            {
                RileyLinkInstance = new RileyLink();
            }

            if (RileyLinkMessageExchange == null)
            {
                RileyLinkMessageExchange = new RileyLinkMessageExchange(messageExchangeParameters, pod, RileyLinkInstance);
            }
            else
            {
                RileyLinkMessageExchange.UpdateParameters(messageExchangeParameters, pod, RileyLinkInstance);
            }

            await RileyLinkMessageExchange.InitializeExchange(messageProgress, ct);

            return(RileyLinkMessageExchange);
        }
 public void UpdateParameters(IMessageExchangeParameters messageExchangeParameters, IPod pod, RileyLink rileyLinkInstance)
 {
     RileyLink = rileyLinkInstance;
     Pod       = pod;
     MessageExchangeParameters = messageExchangeParameters as ErosMessageExchangeParameters;
 }
 internal RileyLinkMessageExchange(IMessageExchangeParameters messageExchangeParameters, IPod pod, RileyLink rileyLinkInstance)
 {
     RileyLink = rileyLinkInstance;
     Pod       = pod;
     MessageExchangeParameters = messageExchangeParameters as ErosMessageExchangeParameters;
 }