本文整理汇总了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());
}
}
示例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());
}
}
示例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());
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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());
}