Rhino.Queues.QueueManager.EnablePerformanceCounters C# (CSharp) Метод

EnablePerformanceCounters() публичный Метод

public EnablePerformanceCounters ( ) : void
Результат void
        public void EnablePerformanceCounters()
        {
            if (wasStarted)
                throw new InvalidOperationException("Performance counters cannot be enabled after the queue has been started.");

            monitor = new PerformanceMonitor(this);
        }

Usage Example

        private void ConfigureAndStartQueueManager(int port)
        {
            queueManager = new QueueManager(new IPEndPoint(IPAddress.Any, port), path);
            queueManager.CreateQueues(queueName);

            if (enablePerformanceCounters)
                queueManager.EnablePerformanceCounters();

            queueManager.Start();
        }