Beispiel #1
0
        private ReceivingAmqpLink EndCreateLink(IAsyncResult result)
        {
            ActiveClientLink activeClientLink = this.messagingFactory.EndOpenEntity(result);

            this.clientLinkManager.SetActiveLink(activeClientLink);
            return((ReceivingAmqpLink)activeClientLink.Link);
        }
 public void SetActiveLink(ActiveClientLink activeClientLink)
 {
     lock (this.syncRoot)
     {
         this.activeClientLink              = activeClientLink;
         this.activeClientLink.Link.Closed += new EventHandler(this.OnLinkClosed);
         if (this.activeClientLink.Link.State == AmqpObjectState.Opened && this.activeClientLink.IsClientToken)
         {
             this.ScheduleValidityTimer();
         }
     }
 }