private QpidTransportBindingElement(QpidTransportBindingElement other) : this() { Connection = other.Connection; Host = other.Host; PortNumber = other.PortNumber; UserName = other.UserName; Password = other.Password; }
public QpidInputChannel(BindingContext context, ClientSession session, EndpointAddress address) : base(context, address) { _bindingElement = context.Binding.Elements.Find <QpidTransportBindingElement>(); var encoderElem = context.BindingParameters.Find <MessageEncodingBindingElement>(); if (encoderElem != null) { _encoder = encoderElem.CreateMessageEncoderFactory().Encoder; } _session = session; _queueName = address.Uri.ToString(); _queue = new BlockingQueue(); }
protected QpidChannelListenerBase(BindingContext context) { _context = context; _bindingElement = context.Binding.Elements.Find <QpidTransportBindingElement>(); _closeMethod = OnClose; _openMethod = OnOpen; _waitForChannelMethod = OnWaitForChannel; _acceptChannelMethod = OnAcceptChannel; if (context.ListenUriMode == ListenUriMode.Explicit && context.ListenUriBaseAddress != null) { _listenUri = new Uri(context.ListenUriBaseAddress, context.ListenUriRelativeAddress); } else { _listenUri = new Uri(new Uri("soap.amqp:///"), Guid.NewGuid().ToString()); } }
public QpidBinding(string host, int port, string username, string password, string virtualhost) { Host = host; PortNumber = port; UserName = username; Password = password; VirtualHost = virtualhost; _transport = new QpidTransportBindingElement(); _transport.Host = host; _transport.PortNumber = port; _transport.Password = password; _transport.UserName = username; _transport.VirtualHost = virtualhost; _encoding = new TextMessageEncodingBindingElement(); _session = new ReliableSessionBindingElement(); _compositeDuplex = new CompositeDuplexBindingElement(); _transactionFlow = new TransactionFlowBindingElement(); }
public QpidChannelFactory(BindingContext context) { _context = context; _openMethod = Open; _bindingElement = context.Binding.Elements.Find <QpidTransportBindingElement>(); }