c# - NServiceBus v5.0 是否需要性能计数器?

标签 c# nservicebus

我最近将我的小项目从 NServiceBus 4.6 升级到了 5.0.1。平滑接口(interface)更改后,我现在在运行时崩溃并显示消息:

System.InvalidOperationException was unhandled Message: An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dll Additional information: NServiceBus performance counter for Critical Time is not set up correctly. Please run Install-NServiceBusPerformanceCounters cmdlet to rectify this problem.

我没有在我的代码中使用性能计数器,也不想安装任何额外的组件。我在 Particular 的 GitHub 页面上看到示例“VideoStore.SqlServer”存在同样的问题。做一个新的拉动,F5,......然后繁荣。

NServiceBus 版本 5 是否要求我默认设置它们的计数器而不是 v4.x 的选择加入方法?

编辑:2014-10-21 使用 config.DisableFeature<CriticalTimeMonitoring>();我仍然无法让示例运行(收到相同的错误)。根据 Adam 的建议,我打开了一个 ticket当我收到 Particular 对这个问题的回复时,我会更新这个问题。

最佳答案

在您的配置中,您可以禁用该功能:config.DisableFeature<CriticalTimeMonitoring>();

关于c# - NServiceBus v5.0 是否需要性能计数器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26286121/

相关文章:

c# - 我该如何解决有关 TcpListener : Please use TcpListener(IPAddress localaddr, int port) 的警告?

c# - 获取一组字典中给定键的每个值的列表?

c# - Moq - 无法遍历隐藏的 IEnumerable

java - 如何让 Java 应用程序订阅 NServiceBus 发布者?

NServiceBus - 两个发布者,一个订阅者,相同的消息接口(interface)

c# - 呈现 xml 验证错误

c# - 嵌套属性的 FluentValidation 消息

nservicebus - 通过 NServiceBus.Host.exe 启动端点时出现异常

NServiceBus Send() 与 SendLocal() 和异常

NServiceBus,找不到消息类型的传奇