当前位置: 首页>>代码示例>>C#>>正文


C# QueueManager.EnablePerformanceCounters方法代码示例

本文整理汇总了C#中QueueManager.EnablePerformanceCounters方法的典型用法代码示例。如果您正苦于以下问题:C# QueueManager.EnablePerformanceCounters方法的具体用法?C# QueueManager.EnablePerformanceCounters怎么用?C# QueueManager.EnablePerformanceCounters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在QueueManager的用法示例。


在下文中一共展示了QueueManager.EnablePerformanceCounters方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Enabling_performance_counters_without_existing_categories_throws_meaningful_error

        public void Enabling_performance_counters_without_existing_categories_throws_meaningful_error()
        {
            PerformanceCounterCategoryCreation.DeletePerformanceCounters();

            using (var queueManager = new QueueManager(new IPEndPoint(IPAddress.Loopback, 23456), TEST_QUEUE_1))
            {
                Assert.Throws<ApplicationException>(() => queueManager.EnablePerformanceCounters());
            }
        }
开发者ID:hibernating-rhinos,项目名称:rhino-queues,代码行数:9,代码来源:EnablingPerformanceCounters.cs

示例2: Enabling_performance_counters_after_queue_has_started_should_throw

 public void Enabling_performance_counters_after_queue_has_started_should_throw()
 {
     Setup();
     using (var queueManager = new QueueManager("localhost", TEST_QUEUE_1))
     {
         queueManager.Start();
         Assert.Throws<InvalidOperationException>(() => queueManager.EnablePerformanceCounters());
     }
 }
开发者ID:BclEx,项目名称:rhino-esb,代码行数:9,代码来源:EnablingPerformanceCounters.cs

示例3: Enabling_performance_counters_after_queue_has_started_should_throw

        public void Enabling_performance_counters_after_queue_has_started_should_throw()
        {
            Setup();

            using (var queueManager = new QueueManager(new IPEndPoint(IPAddress.Loopback, 23456), TEST_QUEUE_1))
            {
                queueManager.Start();
                Assert.Throws<InvalidOperationException>(() => queueManager.EnablePerformanceCounters());
            }
        }
开发者ID:hibernating-rhinos,项目名称:rhino-queues,代码行数:10,代码来源:EnablingPerformanceCounters.cs

示例4: Enabling_performance_counters_should_syncronize_counters_with_current_queue_state

 public void Enabling_performance_counters_should_syncronize_counters_with_current_queue_state()
 {
     Setup();
     using (var queueManager = new QueueManager("localhost", TEST_QUEUE_1))
     {
         EnqueueMessages(queueManager);
         queueManager.EnablePerformanceCounters();
     }
     AssertAllCountersHaveCorrectValues();
 }
开发者ID:BclEx,项目名称:rhino-esb,代码行数:10,代码来源:EnablingPerformanceCounters.cs

示例5: After_enabling_performance_counters_changes_to_queue_state_should_be_reflected_in_counters

 public void After_enabling_performance_counters_changes_to_queue_state_should_be_reflected_in_counters()
 {
     Setup();
     using (var queueManager = new QueueManager("localhost", TEST_QUEUE_1))
     {
         queueManager.EnablePerformanceCounters();
         EnqueueMessages(queueManager);
     }
     AssertAllCountersHaveCorrectValues();
 }
开发者ID:BclEx,项目名称:rhino-esb,代码行数:10,代码来源:EnablingPerformanceCounters.cs

示例6: Enabling_performance_counters_should_syncronize_counters_with_current_queue_state

        public void Enabling_performance_counters_should_syncronize_counters_with_current_queue_state()
        {
            Setup();

            using (var queueManager = new QueueManager(new IPEndPoint(IPAddress.Loopback, 23456), TEST_QUEUE_1))
            {
                EnqueueMessages(queueManager);
                queueManager.EnablePerformanceCounters();
            }

            AssertAllCountersHaveCorrectValues();
        }
开发者ID:hibernating-rhinos,项目名称:rhino-queues,代码行数:12,代码来源:EnablingPerformanceCounters.cs

示例7: After_enabling_performance_counters_changes_to_queue_state_should_be_reflected_in_counters

        public void After_enabling_performance_counters_changes_to_queue_state_should_be_reflected_in_counters()
        {
            Setup();

            using (var queueManager = new QueueManager(new IPEndPoint(IPAddress.Loopback, 23456), TEST_QUEUE_1))
            {
                queueManager.EnablePerformanceCounters();
                EnqueueMessages(queueManager);
            }

            AssertAllCountersHaveCorrectValues();
        }
开发者ID:hibernating-rhinos,项目名称:rhino-queues,代码行数:12,代码来源:EnablingPerformanceCounters.cs

示例8: Enabling_performance_counters_without_existing_categories_throws_meaningful_error

 public void Enabling_performance_counters_without_existing_categories_throws_meaningful_error()
 {
     PerformanceCounterCategoryCreation.DeletePerformanceCounters();
     using (var queueManager = new QueueManager("localhost", TEST_QUEUE_1))
         Assert.Throws<ApplicationException>(() => queueManager.EnablePerformanceCounters());
 }
开发者ID:BclEx,项目名称:rhino-esb,代码行数:6,代码来源:EnablingPerformanceCounters.cs


注:本文中的QueueManager.EnablePerformanceCounters方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。