public MsmqInputSessionChannel(MsmqInputSessionChannelListener listener, Transaction associatedTx, ReceiveContext sessiongramReceiveContext)
            : base(listener, new EndpointAddress(listener.Uri))
        {
            this.session = new InputSession();
            this.incompleteMessageCount = 0;

            if (sessiongramReceiveContext == null)
            {
                this.receiveContextEnabled = false;

                // only enlist if we are running in a non-receive context mode
                this.associatedTx = associatedTx;
                this.associatedTx.EnlistVolatile(new TransactionEnlistment(this, this.associatedTx), EnlistmentOptions.None);
            }
            else
            {
                //ignore the ambient transaction if any
                this.receiveContextEnabled = true;
                this.sessiongramReceiveContext = sessiongramReceiveContext;
                this.sessiongramDoomed = false;
            }
        }
Beispiel #2
0
        public MsmqInputSessionChannel(MsmqInputSessionChannelListener listener, Transaction associatedTx, ReceiveContext sessiongramReceiveContext)
            : base(listener, new EndpointAddress(listener.Uri))
        {
            this.session = new InputSession();
            this.incompleteMessageCount = 0;

            if (sessiongramReceiveContext == null)
            {
                this.receiveContextEnabled = false;

                // only enlist if we are running in a non-receive context mode
                this.associatedTx = associatedTx;
                this.associatedTx.EnlistVolatile(new TransactionEnlistment(this, this.associatedTx), EnlistmentOptions.None);
            }
            else
            {
                //ignore the ambient transaction if any
                this.receiveContextEnabled     = true;
                this.sessiongramReceiveContext = sessiongramReceiveContext;
                this.sessiongramDoomed         = false;
            }
        }
Beispiel #3
0
 public ServiceBusInputSessionChannel(MessageSession messageSession, ServiceBusChannelListener <IInputSessionChannel> parent) : base(parent)
 {
     this.Session            = new ServiceBusInputSessionChannel.InputSession(messageSession.SessionId);
     base.MessageReceiver    = messageSession;
     this.sessionIdleTimeout = parent.TransportBindingElement.SessionIdleTimeout;
 }
 protected override void OnAfterTryReceiveRequest(BusMessage message)
 {
     _session = new MessageBusInputSession(message.SessionID);
 }
Beispiel #5
0
 private void JustDecompileGenerated_set_Session(IInputSession value)
 {
     this.JustDecompileGenerated_Session_k__BackingField = value;
 }