Exemplo n.º 1
0
 public RabbitMQChannelFactory(BindingContext context)
 {
     m_context        = context;
     m_openMethod     = new CommunicationOperation(Open);
     m_bindingElement = context.Binding.Elements.Find <RabbitMQTransportBindingElement>();
     m_model          = null;
 }
 protected RabbitMQInputChannelBase(BindingContext context, EndpointAddress localAddress)
     : base(context)
 {
     _localAddress     = localAddress;
     _receiveMethod    = Receive;
     _tryReceiveMethod = TryReceive;
     _waitForMessage   = WaitForMessage;
 }
 protected RabbitMQInputChannelBase(BindingContext context, EndpointAddress localAddress)
     : base(context)
 {
     _localAddress = localAddress;
     _receiveMethod = Receive;
     _tryReceiveMethod = TryReceive;
     _waitForMessage = WaitForMessage;
 }
Exemplo n.º 4
0
 protected RabbitMQInputChannelBase(BindingContext bindingContext, EndpointAddress localAddress)
     : base(bindingContext)
 {
     this._localAddress     = localAddress;
     this._receiveMethod    = this.Receive;
     this._tryReceiveMethod = this.TryReceive;
     this._waitForMessage   = this.WaitForMessage;
 }
 protected RabbitMQInputChannelBase(BindingContext context, EndpointAddress localAddress)
 :base(context)
 {
     m_localAddress = localAddress;
     m_receiveMethod = new CommunicationOperation<Message>(Receive);
     m_tryReceiveMethod = new CommunicationOperation<bool, Message>(TryReceive);
     m_waitForMessage = new CommunicationOperation<bool>(WaitForMessage);
 }
 protected RabbitMQInputChannelBase(BindingContext context, EndpointAddress localAddress)
     : base(context)
 {
     m_localAddress     = localAddress;
     m_receiveMethod    = new CommunicationOperation <Message>(Receive);
     m_tryReceiveMethod = new CommunicationOperation <bool, Message>(TryReceive);
     m_waitForMessage   = new CommunicationOperation <bool>(WaitForMessage);
 }
Exemplo n.º 7
0
 protected RabbitMQChannelListenerBase(BindingContext context, Uri listenUri)
 {
     _context              = context;
     _listenUri            = listenUri;
     _bindingElement       = context.Binding.Elements.Find <RabbitMQTransportBindingElement>();
     _closeMethod          = OnClose;
     _openMethod           = OnOpen;
     _waitForChannelMethod = OnWaitForChannel;
     _acceptChannelMethod  = OnAcceptChannel;
 }
 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());
     }
 }
        protected RabbitMQChannelListenerBase(BindingContext context)
        {
            m_context              = context;
            m_bindingElement       = context.Binding.Elements.Find <RabbitMQTransportBindingElement>();
            m_closeMethod          = new CommunicationOperation(OnClose);
            m_openMethod           = new CommunicationOperation(OnOpen);
            m_waitForChannelMethod = new CommunicationOperation <bool>(OnWaitForChannel);
            m_acceptChannelMethod  = new CommunicationOperation <TChannel>(OnAcceptChannel);

            if (context.ListenUriMode == ListenUriMode.Explicit && context.ListenUriBaseAddress != null)
            {
                m_listenUri = new Uri(context.ListenUriBaseAddress, context.ListenUriRelativeAddress);
            }
            else
            {
                m_listenUri = new Uri(new Uri("soap.amqp:///"), Guid.NewGuid().ToString());
            }
        }
Exemplo n.º 10
0
 public QpidChannelFactory(BindingContext context)
 {
     _context        = context;
     _openMethod     = Open;
     _bindingElement = context.Binding.Elements.Find <QpidTransportBindingElement>();
 }
Exemplo n.º 11
0
 private QpidChannelBase()
 {
     _state       = CommunicationState.Created;
     _closeMethod = Close;
     _openMethod  = Open;
 }
 private RabbitMQChannelBase()
 {
     m_state       = CommunicationState.Created;
     m_closeMethod = new CommunicationOperation(Close);
     m_openMethod  = new CommunicationOperation(Open);
 }
 public RabbitMQTransportChannelFactory(BindingContext context)
 {
     _context    = context;
     _openMethod = Open;
 }