Spring.Messaging.Nms.Listener.SimpleMessageListenerContainer.CreateListenerConsumer(Apache.NMS.ISession)

Here are the examples of the csharp api class Spring.Messaging.Nms.Listener.SimpleMessageListenerContainer.CreateListenerConsumer(Apache.NMS.ISession) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: spring-net
Source File: SimpleMessageListenerContainer.cs
protected virtual void InitializeConsumers()
        {
            // Register Sessions and MessageConsumers            
            lock (consumersMonitor)
            {
                if (this.consumers == null)
                {
                    this.sessions = new HashedSet();
                    this.consumers = new HashedSet();
                    IConnection con = SharedConnection;
                    for (int i = 0; i < this.concurrentConsumers; i++)
                    {
                        ISession session = CreateSession(SharedConnection);
                        IMessageConsumer consumer = CreateListenerConsumer(session);
                        this.sessions.Add(session);
                        this.consumers.Add(consumer);
                    }
                }
            }
        }