public AmqpLink(AmqpSession session, string name, uint localHandle, bool isReceiverLink, bool isInitiatingLink, uint remoteHandle) { this.Name = name; this.Session = session; this.LocalHandle = remoteHandle; this.IsReceiverLink = isReceiverLink; this.IsSenderLink = !isReceiverLink; this.IsInitiatingLink = isInitiatingLink; this.RemoteHandle = localHandle; this.State = LinkStateEnum.DETACHED; senderSettlementMode = LinkSenderSettlementModeEnum.Mixed; receiverSettlementMode = LinkReceiverSettlementModeEnum.First; DeliveryCount = initialDeliveryCount = 0; }
internal void NotifySessionUnmapped(AmqpSession session) { trace.Debug("Session {0} Unmapped", session.ChannelNumber); localSessionMap[session.ChannelNumber] = null; remoteSessionMap[session.RemoteChannelNumber] = null; }