Example #1
0
        internal ActivatedMessageQueue(ListenerAdapter listenerAdapter, App app)
            : base()
        {
            Debug.Print("ActivatedMessageQueue.ctor(listenerAdapter:" + listenerAdapter + " appKey:" + app.AppKey + " appPoolId:" + app.AppPool.AppPoolId + ")");
            this.listenerAdapter = listenerAdapter;
            this.app = app;
            this.queueState = QueueState.PendingOpen;

            CreateListenerChannelContext();
        }
Example #2
0
            public IActivatedMessageQueue CreateQueue(ListenerAdapter la, App app)
            {
                QueueMonitorGroup qmg = new QueueMonitorGroup(this, la, app);

                lock (this.thisLock)
                {
                    this.groups[qmg.ListenerChannelContext.ListenerChannelId] = qmg;
                }
                return(qmg);
            }
Example #3
0
        internal ActivatedMessageQueue(ListenerAdapter listenerAdapter, App app)
            : base()
        {
            Debug.Print("ActivatedMessageQueue.ctor(listenerAdapter:" + listenerAdapter + " appKey:" + app.AppKey + " appPoolId:" + app.AppPool.AppPoolId + ")");
            this.listenerAdapter = listenerAdapter;
            this.app             = app;
            this.queueState      = QueueState.PendingOpen;

            CreateListenerChannelContext();
        }
Example #4
0
            public QueueMonitorGroup(ActivationService activationService, ListenerAdapter la, App app)
            {
                this.activationService = activationService;
                this.listenerAdapter   = la;
                this.app = app;
                this.startQueueInstanceCount = 1;
                this.listenerChannelContext  = new ListenerChannelContext(app.AppKey,
                                                                          Interlocked.Increment(ref queueIdCounter), Guid.Empty);

                this.pendingNotificationCount = 0;
                this.filter     = new ActivationBindingFilter(this, app.Path);
                this.retryTimer = new IOThreadTimer(new Action <object>(OnRetryTimer), null, false);
            }
Example #5
0
        void Start()
        {
#if DEBUG
            DebuggableService.WaitForDebugger(ServiceName);
#endif
            if (!SMSvcHost.IsWebhostSupported)
            {
                const int ERROR_NOT_SUPPORTED = 50;
                this.ExitCode = ERROR_NOT_SUPPORTED;
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ServiceRequiresWas)));
            }
            isPaused        = false;
            listenerAdapter = new ListenerAdapter(this);
            listenerAdapter.Open();
        }
Example #6
0
 public IActivatedMessageQueue CreateQueue(ListenerAdapter la, App app)
 {
     return new ActivatedMessageQueue(la, app);
 }
Example #7
0
        void Start()
        {
#if DEBUG
            DebuggableService.WaitForDebugger(ServiceName);
#endif
            if (!SMSvcHost.IsWebhostSupported)
            {
                const int ERROR_NOT_SUPPORTED = 50;
                this.ExitCode = ERROR_NOT_SUPPORTED;
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ServiceRequiresWas)));
            }
            isPaused = false;
            listenerAdapter = new ListenerAdapter(this);
            listenerAdapter.Open();
        }
Example #8
0
 public IActivatedMessageQueue CreateQueue(ListenerAdapter la, App app)
 {
     return(new ActivatedMessageQueue(la, app));
 }
Example #9
0
            public QueueMonitorGroup(ActivationService activationService, ListenerAdapter la, App app)
            {
                this.activationService = activationService;
                this.listenerAdapter = la;
                this.app = app;
                this.startQueueInstanceCount = 1;
                this.listenerChannelContext = new ListenerChannelContext(app.AppKey,
                    Interlocked.Increment(ref queueIdCounter), Guid.Empty);

                this.pendingNotificationCount = 0;
                this.filter = new ActivationBindingFilter(this, app.Path);
                this.retryTimer = new IOThreadTimer(new Action<object>(OnRetryTimer), null, false);
            }
Example #10
0
 public IActivatedMessageQueue CreateQueue(ListenerAdapter la, App app)
 {
     QueueMonitorGroup qmg = new QueueMonitorGroup(this, la, app);
     lock (this.thisLock)
     {
         this.groups[qmg.ListenerChannelContext.ListenerChannelId] = qmg;
     }
     return qmg;
 }